Commit Graph

4194 Commits (b41a6188878f50feace5354b5d71fbe0cd394a87)
 

Author SHA1 Message Date
Bailey Chittle b41a618887 allow shorts to be implicitly converted to int 2 years ago
Bailey Chittle 2d0448318e more restrictive type conversions 2 years ago
Bailey Chittle 6be381bf20 added scrambling 2 years ago
Bailey Chittle e9344434eb change string view to spdlogs, remove bool type 2 years ago
Felix Heitmann 59b09c7a18 Included missing header 2 years ago
Felix Heitmann 16492bde1b TDS2 compatible version
Uses type traits to enable specific overloads
- std::to_string is implemented for integral types and floating point types (s. cppreference std::to_string)
- Boolean values get written as true/false
- string like types are converted to strings
2 years ago
Bailey Chittle 0d6afd9d5e matching the overloads from popular compilers 2 years ago
Bailey Chittle a146cd6c02 forgot an overload for pure std strings 2 years ago
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 676667da41 custom tessonics readme 2 years ago
Bailey Chittle bfb8ea1f6e exception safety tests 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 443d016e89 fixed example to include new pattern formatting 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 626704c9dd attribute example for testing purposes 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 96d28af394 set string_view option instead of error for compat 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