Commit Graph

2498 Commits (07d93daba3a83a5b57b045a388a43f7ec5fe4f19)

Author SHA1 Message Date
M4rFri 0f9f7540d3
fixed some rebase errors 2 months ago
Felix Heitmann 58912623bc
Attributes: use proper function for overwriting attributes 2 months ago
Felix Heitmann 1b2acfca20
Attributes: scoped contexts
Oftentimes you want to put attributes into a logger (file names, ids, etc.) only for a specific scope (e.g. a function or an if-clause).

Creating a scoped-context will allow this, by returning an RAII-object that will remove the inserted keys upon destruction.
2 months ago
Felix Heitmann 9d708f921a
Attributes proper insertion overloads.
Previous functions were named poorly due to miscommunication between the devs.

All functions to put attributes on a logger are `put`.
2 months ago
Felix Heitmann d468e32a88
Attributes: invert attr search logic 2 months ago
Felix Heitmann fbba947af4
Attributes: moving to ordered map
Otherwise the attributes are printed in pseudo-random order.
2 months ago
Felix Heitmann b63b652d6c
Attributes: Removing impact on logger
The logger interface should not be bloated by additional functionality. Reducing it to a nested call to `.attrs().put()` achieves the same nesting as `.put_attribute()` but requires a smaller interface change on the logger class.
2 months ago
M4rFri 0da83dc1ef
Updated logger to accept and log attributes 2 months ago
M4rFri 457549e4ab
Updated log_msg to accept attributes 2 months ago
M4rFri 9ddf5bff29
Added attributes 2 months ago
Gabi Melman 1f9272eb7d
Update logger.h 5 months ago
gabime 9db0ba648a Refactor SPDLOG_API define 7 months ago
gabime 463e41f049 Refactor exporing in common.h 7 months ago
gabime ace82f7da6 Try fix windows link error with visiblity 7 months ago
gabime b93c0f8e8d Update comment 7 months ago
gabime aec733b7a9 change async queue limits to constexpr 7 months ago
gabime eb660caa6c Limit max async queue size to 250,000 entries 7 months ago
gabime af8440b248 Small clean of enqueue_if_have_room in mpmc_blocking_q.h 7 months ago
Gabi Melman 2abfa1628b
Gabime/visibilty-hidden 2.x (#3324)
Set CMAKE_CXX_VISIBILITY_PRESET and VISIBILITY_INLINES_HIDDEN when build shared lib
7 months ago
gabime 47fe6ef92a code format 7 months ago
gabime f00a6550fa Fixed some tidy warnings 7 months ago
gabime 80f00797e3 Fixed copy ctor of err_helper to be thread safe 7 months ago
gabime 62bbd87bdb Fixed warning 7 months ago
gabime 8736ee28e0 Fixed warnings 7 months ago
gabime 82358e8ebe refactor async sink 7 months ago
gabime 9673c1ba09 Fixed warning about move 7 months ago
gabime be942e0a2d Limit error handler rate to 1/sec 7 months ago
gabime af7b061773 Added with_all to async sink improved destructor 7 months ago
gabime bc2eed7913 Added custom error handler support to async sink 7 months ago
gabime b46b6dcb00 Fixed bin_to_hex tidy warnings 7 months ago
gabime 08a9604a57 noexcept 8 months ago
gabime ffbb35368d noexcept 8 months ago
gabime 7dfb474632 Added source_loc by ref 8 months ago
gabime 2ef467be7d Pass source loc by ref 8 months ago
gabime adaf0554be Pass source loc by ref to log_msg 8 months ago
gabime 04004e57c2 Moved should_flush_ to header 8 months ago
Gabi Melman 83c9ede9e6
Asink sink (#3309)
Replace async logger with async sink
8 months ago
Gabi Melman 166843ff3a
V2.x no reg (#3285)
Removed registry
9 months ago
Gabi Melman 08c727e4f8
Use std filesystem (#3284)
* Use std::filesystem for path names and impl
9 months ago
gabime e62be8b43f clang-format 9 months ago
gabime 3b6f36c43b Fix windows compile 9 months ago
gabime 3c9963a495 Removed tweak options and spdlog_config.h 9 months ago
gabime e26e3692d1 Non locking ::fwrite if possible (SPDLOG_FWRITE_UNLOCKED defined) or use the regular locking fwrite 9 months ago
gabime 0d8f1f1dd4 Fixed tidy warnings 9 months ago
gabime 7a0e2ff8a8 Fixed tidy warnings 9 months ago
gabime 82bb5114e2 Fixed some tidy warnings 9 months ago
gabime 03e20348e2 Added back wstr_to_utf8buf() and utf8_to_wstrbuf() for windows 9 months ago
hjs-ast bb4b719ccf Allow manual rotation of rotating_file_sink (#3269)
* Allow manual rotation of rotating_file_sink

* Rename rotation method

* Attempted fix for tests on Windows

* Apply review mark-ups
9 months ago
gabime 2057f67015 Removed SPDLOG_WCHAR_FILENAMES support 9 months ago
gabime ddf14d67df Fix comment 9 months ago