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.
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.
* 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
* 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>
Newlib C library (https://sourceware.org/newlib/) has a configuration
option to add tm_gmtoff field to the tm structure. Not all the
platforms supported by newlib enable this option, and spdlog doesn't
compile on such platforms due to missing tm_gmtoff field.
Fix this by checking for `__NEWLIB__` and `__TM_GMTOFF` and enabling
calculate_gmt_offset.