Commit Graph

4708 Commits (25cfceca04f5dbde91c5f220178edcabbf02a183)
 

Author SHA1 Message Date
Felix Heitmann 25cfceca04
fixing signed/unsigned in test attributes 6 months ago
Felix Heitmann 58912623bc
Attributes: use proper function for overwriting attributes 6 months ago
Felix Heitmann 25ee4f3ffb
Attribute tests: remove fmtlib from tests
Use the spdlog::fmt_lib wrapper instead.
6 months ago
Felix Heitmann 976af140b0
Attributes include unit-tests 6 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.
6 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`.
6 months ago
Felix Heitmann d468e32a88
Attributes: invert attr search logic 6 months ago
Felix Heitmann fbba947af4
Attributes: moving to ordered map
Otherwise the attributes are printed in pseudo-random order.
6 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.
6 months ago
M4rFri d17331ec26
Added some unit tests 6 months ago
M4rFri 0da83dc1ef
Updated logger to accept and log attributes 6 months ago
M4rFri 457549e4ab
Updated log_msg to accept attributes 6 months ago
M4rFri 33d0ea1f73
Added attribute formatter 6 months ago
M4rFri 9ddf5bff29
Added attributes 6 months ago
gabime ce0424bb37 Bump fmt to 11.1.4 8 months ago
Gabi Melman 1f9272eb7d
Update logger.h 8 months ago
gabime 22122f3901 Merge PR #3366 from 1.x (Fix zformatter on Apple and POSIX.1-2024 conforming platform) 9 months ago
Jan Moravec 1b0a1dda33
Update CMake minimum version required (#3359)
FILE_SET functionality was introduced in CMake version 3.23.

https://cmake.org/cmake/help/latest/command/target_sources.html
9 months ago
gabime 88715d29e9 cherrypick pr #3661 9 months ago
gabime 22405cf9ae Fixed async bench 11 months ago
gabime 27d8580131 Bump fmt to version 11.1.3 11 months ago
gabime fbffd38030 CMakeLists.txt format 11 months ago
gabime 3a54caee36 CMakeLists.txt format 11 months ago
gabime 9db0ba648a Refactor SPDLOG_API define 11 months ago
gabime 463e41f049 Refactor exporing in common.h 11 months ago
gabime ace82f7da6 Try fix windows link error with visiblity 11 months ago
gabime b93c0f8e8d Update comment 11 months ago
gabime aec733b7a9 change async queue limits to constexpr 11 months ago
gabime eb660caa6c Limit max async queue size to 250,000 entries 11 months ago
gabime af8440b248 Small clean of enqueue_if_have_room in mpmc_blocking_q.h 11 months ago
gabime 214e26e8b2 Make err_helper time printing more robust 11 months ago
gabime 35060923d9 improved err_helper message while catching exceptions 11 months ago
gabime a8e7527d2d Merge branch 'v2.x' of github.com:gabime/spdlog into v2.x 11 months ago
Gabi Melman 2abfa1628b
Gabime/visibilty-hidden 2.x (#3324)
Set CMAKE_CXX_VISIBILITY_PRESET and VISIBILITY_INLINES_HIDDEN when build shared lib
11 months ago
gabime d6389d696e Fixed analyzer warnings in ansicolor_sink.cpp 11 months ago
gabime c563b62aea Refactor ansicolor_sink.cpp 11 months ago
Gabi Melman e3f8349d0c
Add missing locks to ansicolor_sink.cpp 11 months ago
Gabi Melman 128a9fcc49
Update test_async.cpp 11 months ago
Gabi Melman 43812ddaf1
Update test_async.cpp 11 months ago
gabime 23b1c4c079 Revert "Small code removal"
This reverts commit b01f15cb26.
11 months ago
gabime b01f15cb26 Small code removal 11 months ago
gabime 370dad3225 Use chrono literals in async tests 11 months ago
gabime 418a39f6ce Fixed test 11 months ago
gabime 177f2618fb Merge branch 'v2.x' of github.com:gabime/spdlog into v2.x 11 months ago
Gabi Melman 6a794b1dff
Update test_async.cpp 11 months ago
gabime fbe626d828 code format 11 months ago
gabime 47fe6ef92a code format 11 months ago
gabime b9f0243405 code format 11 months ago
gabime 873026a254 Pad level names in default pattern 11 months ago
gabime e99e09eba7 Fixed global logger name 11 months ago