Commit Graph

370 Commits (59a4dab260b2b6cbd78f4a151dfcf93132240192)

Author SHA1 Message Date
Bailey Chittle 59a4dab260 contextual logger attributes (#2)
* init fixed attribute, currently having issues with the factory

* using the much simpler api already defined: no factory, just define the sinks yourself

* async logger fixed attribute support

* fixed missing fixed attributes in default log calls

* forgot some spots, all cases were found?

* potential fix for illegal vector iterators

* kept up to date with attributes branch

* cleaner fixed logger api

* less function overloads, just add and remove context when needed

* fixed example to use new api

* added append function for nested context

* pushing and popping contexts for nested loggers

* fixed error due to implicit conversion

* fixed sign conversion error

* better attribute example with optional json example

Co-authored-by: Bailey Chittle <baileyc@tessonics.com>
2 years ago
Bailey Chittle 443d016e89 fixed example to include new pattern formatting 2 years ago
Bailey Chittle d03d2be752 more endpoints, removed commas from logfmt 2 years ago
Bailey Chittle 10d144f3e9 more well-defined definition of list instantiation using a pre-defined type 2 years ago
Bailey Chittle feca242449 scrambling key and value to escape ascii codes 2 years ago
Bailey Chittle 9cf86f592d fixed bugs with default formatting 2 years ago
Bailey Chittle 3efa3023c2 multiple kv pairs can be passed via initializer list 2 years ago
Bailey Chittle ce996563d1 attributes can simulate structured logging, show example. Now works with pattern_formatter 2 years ago
Bailey Chittle 626704c9dd attribute example for testing purposes 2 years ago
Bailey Chittle 0367289b3f separate std string view from std format 2 years ago
Mohammad Ali 3cab260814
Add a trivial callback sink (#2610)
Add a trivial callback sink
3 years ago
gabime a7e2bf161e Update user defined type example 3 years ago
gabime 070dd181df clang format 3 years ago
Kevin Slattery d3dee23e6c Remove new macro, update example with correct way to specify fmt lib namespace when fmt_lib namespace alias cannot be used. 3 years ago
Kevin Slattery 5f5e70e96e C++14 build fixes for older gcc #2333 3 years ago
gabime 71105e0b07 Fixed #2227 4 years ago
gabime c432fdd987 Bump fmt to version 8.1.1 and run clang-format 4 years ago
Gabi Melman e45c11f98a
Update example.cpp 4 years ago
Gabi Melman c211288576
Update example.cpp 4 years ago
Gabi Melman 4fefd51e08
Fixed custom type example to work in c++11 4 years ago
gabime f81970191a Fixed example for custom_type 4 years ago
gabime b8b16e49a5 Fixed example for custom_type 4 years ago
gabime 2c21d9ecf8 Fixed example for custom_type 4 years ago
gabime 2a45eff693 Fixed example for custom_type 4 years ago
gabime 5bf8728cfa Fixed example for std_format 4 years ago
Roocks Patrick (MTN PTT / External) d93cea97ec Fix usage of ranges and to_hex in the same compile unit
When trying to use spdlog/fmt/bin_to_hex.h in the same compile unit as spdlog/fmt/bundled/ranges.h you got a compile error because there was a multiple definitions for iterable classes. This fix renames the begin() and end() getters in dump_info into getBegin()/getEnd() in order to avoid this collision.

Added an example of ranges in example.cpp to show that it actually works (an to_hex example was already there)
4 years ago
Sean Farrell f52d526e1e Add example to replace default logger.
Close #2193
4 years ago
gabime dc030ec53c clang-format 4 years ago
Gabi Melman 10b640d773
Update example.cpp 4 years ago
gabime 5b7dfefc7e rename file_event_handlers_t to file_event_handlers 4 years ago
gabime 698516f3f5 Updated example 4 years ago
gabime b813bb863d Updated file_events example 4 years ago
gabime 30fb78813b Updated file events example 4 years ago
seker 24a551c14e file_event_handlers add before_open function 4 years ago
seker c47ae3b15d add file event handlers 4 years ago
gabime 1ec50cdcfc update udp example 4 years ago
Chris Love 444df2b287 Address PR comments 4 years ago
Chris Love 8ee1c167b9 Don't use std::chrono_literals 4 years ago
Chris Love 486dc5102e Winsock support 4 years ago
Chris Love 4501f21ae7 Fix example 4 years ago
Chris Love 649424b8ea Fix IP address of udp sink example 4 years ago
Chris Love a15f5137ef Fix udp sink on Windows 4 years ago
Chris Love c5fd8a0b97 Port code from prior PR (#1746), code cleanups 4 years ago
gabime 0f39da5490 Updated example 4 years ago
dkavolis 1344d44a5a check args on formatting 4 years ago
gabime e7e8b75a4c clang-format 4 years ago
gabime 7636f1f659 revert some changes made by mistake 4 years ago
gabime 1523c83650 Added fmt/compile.h bundled file 4 years ago
Nandan V 2a9edb2153
Minor typo 4 years ago
gabime b2e31721e8 Update example 5 years ago