Commit Graph

2254 Commits (8c76d5c3c412717dbca8d06d11764fe13510dddb)

Author SHA1 Message Date
Bailey Chittle 8c76d5c3c4 capture every integer type 2 years ago
Bailey Chittle a6d80d7710 using structs to define type conversions 2 years ago
Bailey Chittle 15ef6042d4 overloads that work 2 years ago
Felix Heitmann 736c46e660 Make it C++11 compatible
This is more in line with spdlog
2 years ago
Felix Heitmann 57bea28e22 Re-patch log_attr: make it valid for all integral/floating types
- Is C++20 allowed?
2 years ago
Felix Heitmann 60527f2c4b Re-patch log_attr: make it valid for all integral/floating types 2 years ago
Alex Denisov 08f42fb985 fix: attr<T> constructor breaks on types that don't support std::to_string 2 years ago
Bailey Chittle 3d27666650 attribute testing (#3)
* initial testing of attributes

* updating test cases for new api

* more testing, fixing bugs found

* fixed unused error

* errors might be caused due to passing pointers by reference, these simple pointer passes should be by value

* my only other idea for getting this to work. will experiment

* fixing tests before merge (#4)

* my only other idea for getting this to work. will experiment

* I think I fixed the thread issue, lets see...

* unused lambda capture acting funny

* see if its the context that is causing issues

* unused warning... again

* reverting to basic, see where the issue is in github actions (testing most of it locally)

* this works again?

* some diff cleanup before squash merging

* cleaner search for stop iterator
2 years ago
Bailey Chittle b800164d11 global contextual logger support 2 years ago
Bailey Chittle a272bc0516 broke the utf8 code by accident 2 years ago
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 f34970334b keep old range-based for loop for non-attribute code 2 years ago
Bailey Chittle 7e9c35e48e default kv pairs 2 years ago
Bailey Chittle 10445fbbb4 changed switch statement due to an interesting bug I found 2 years ago
Bailey Chittle 44408a626f fixed reordering error 2 years ago
Bailey Chittle 8cabd57215 another pedantic error in ci 2 years ago
Bailey Chittle 530ccd9056 actually for sure fixed the -Werror=conversion, for the specific version of gcc 2 years ago
Bailey Chittle e61ef16263 custom pattern formatting is now functional 2 years ago
Bailey Chittle ec8f97453f experimenting with attribute formatting 2 years ago
Bailey Chittle 5931f97569 fixed errors caused by -Werror=conversion 2 years ago
Bailey Chittle c4b9e286d2 code breaks when fmt is external, so am using fmts implementation only 2 years ago
Bailey Chittle d03d2be752 more endpoints, removed commas from logfmt 2 years ago
Bailey Chittle 89d53711a1 C++11 backwards compat fixes by replacing std::string_view with built-in string_view_t 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 064714ddfb more cleanup of unneeded code, needed to revert cmake standard to get this to work 2 years ago
Bailey Chittle a37be70b3b formats log messages (at least for default) 2 years ago
Bailey Chittle f09a0922eb forgot the things 2 years ago
Bailey Chittle 7e2a93191a attributes passed to root API 2 years ago
Bailey Chittle 76b7158ec1 some bug fixes to attribute fork to get compilation working 2 years ago
Alex Denisov b6f496fc51 experimenting with attributes 2 years ago
Bailey Chittle e1afb67f34 Merge branch 'v1.x' into seperate_std_string_view 2 years ago
Bailey Chittle 0367289b3f separate std string view from std format 2 years ago
SCC/楊志璿 42d1f40a18
Fix stdout_sink_base::log's behavior inconsistency (#2646)
* Fix stdout_sink_base::log's behavior inconsistency

It will flush every time when it if not defined _WIN32, but not in
Windows family.
We viewed the commit #48d4ed9 for fixing issue #1675 .
It seems missing this flushing operation in mistake.

* Use fflush at all operating system

* Remove redundant fflush from stdout_sink_base

---------

Co-authored-by: scc <scc@teamt5.org>
3 years ago
Luis Angerstein 1262a249a6
Fix os namespace in systemd_sink.h (#2668)
* Fix os namespace in systemd_sink.h

* Remove spdlog:: prefix from os::thread_id() call
3 years ago
Gabi Melman 2d57e3b57e
Update and rename kafka_skin.h to kafka_sink.h 3 years ago
听风 b25aaecf6a
feat(kafka_skin.h): kafka log support (#2655)
* feat(kafka_skin.h): kafka log support

add kafka log support

* refactor(kafka_skin.h): remove producer_  check

remove producer_  check
3 years ago
Gabi Melman 262acfdeb5
Update os-inl.h 3 years ago
Gabi Melman a4d8817745
move include cassert 3 years ago
Gabi Melman 66407f5b48
Better handling of utf to wchar 3 years ago
璀境石 4641347c3f
msvc_sink: support utf8 (#2651)
* msvc_sink: support utf8
3 years ago
afshinpir 51bcff820e
Added `apply_logger_env_levels` (#2649)
This method applies levels which is set by environment variable
`SPDLOG_LEVEL` to the a single controller. Usefull for loading
configuration into manually created loggers.
3 years ago
Charles Hardin 7372596126
Add optional TID definition to the systemd sink send (#2619)
From the systemd.journal-fields the TID is a user defined
field passed directly from the clients and stored in the
journal. Adding the arguement in the journal send to support
that storage option in the journal.
3 years ago
Zeus James da14258533
Fix MinGW build issue on example (#2642)
* Fix MinGW build issue on example #2638

* Move the cmake change to example\CMakeLists.txt

* Update CMakeLists.txt on the example
3 years ago
Li Z 927cc29444
Fix unexpected delimiter at start of line in to_hex formatter (#2627) 3 years ago
Mohammad Ali 3cab260814
Add a trivial callback sink (#2610)
Add a trivial callback sink
3 years ago
Gabi Melman 654dbc5c32
Update os.h 3 years ago