Commit Graph

373 Commits (fffa350db14c189938a6f05c18561dd2278a96f7)

Author SHA1 Message Date
Bailey Chittle fffa350db1 Merge branch 'seperate_std_string_view' into attributes 2 years ago
Bailey Chittle 0367289b3f separate std string view from std format 2 years ago
Bailey Chittle 7b92a6c15f Merge branch 'v1.x' into p_attributes 3 years ago
Mohammad Ali 3cab260814
Add a trivial callback sink (#2610)
Add a trivial callback sink
3 years ago
Bailey Chittle d6ed2f2aae global contextual logger support 3 years ago
Bailey Chittle d6d4c65af5
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>
3 years ago
Bailey Chittle 0b48d79fff fixed example to include new pattern formatting 3 years ago
Bailey Chittle d8647064b6 more endpoints, removed commas from logfmt 3 years ago
Bailey Chittle b33301d214 more well-defined definition of list instantiation using a pre-defined type 3 years ago
Bailey Chittle 882cee1285 scrambling key and value to escape ascii codes 3 years ago
Bailey Chittle be5cc44bbf fixed bugs with default formatting 3 years ago
Bailey Chittle 2d79f7a1b3 multiple kv pairs can be passed via initializer list 3 years ago
Bailey Chittle 98958cf765 attributes can simulate structured logging, show example. Now works with pattern_formatter 3 years ago
Bailey Chittle 6c16b6ce5c attribute example for testing purposes 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