Commit Graph

4182 Commits (57bea28e22f1fd0db349c449927f16fdba83c279)
 

Author SHA1 Message Date
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>
2 years ago
Bailey Chittle 040874224b
setting the cmake standard to 20 when using std format (#2680) 3 years ago
Bailey Chittle 6af7ea2e1c setting the cmake standard to 20 when using std format 3 years ago
Luis Angerstein 706ad70591
Enable systemd_sink tests in linux pipeline (#2669)
* Install libsystemd-dev in linux pipeline

Without this package the test_systemd_sink.cpp will not be tested.

* Install pkg-config in linux pipeline
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 2a861d28bd
Update test_errors.cpp 3 years ago
Gabi Melman febc1e233d
Update test_errors.cpp 3 years ago
Gabi Melman 763ff37348
Update test_errors.cpp 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 d07e8cb576
Update appveyor.yml 3 years ago
Vitaly Zaitsev bcd0a2b820
Copy all compiled DLLs to correct destinations. (#2662) 3 years ago
Vitaly Zaitsev 7f09c88817
Added Catch v3 support (#2661)
* Added Catch v3 support.

* Removed extra square brackets from some tests.
3 years ago