Commit Graph

222 Commits (1245bf8e8a19d914271df03124da9593f3634a9c)

Author SHA1 Message Date
Gabi Melman 37b847692e Revert pr #3023 (std::string_view overloads for logger accessor for c++17) 1 year ago
Leadbelly 5532231bbc
feature: adds string view overloads for logger accessor (#3023)
Co-authored-by: Ben Leadbetter <ben.leadbetter@native-instruments.com>
2 years ago
gabime e5865186d4 Revert "Added a function to add callbacks that are called when a logger is registered (#2883)"
This reverts commit b6eeb7364c, since it causes deadlocks too easily for the users.
2 years ago
Jonathan Vannier b6eeb7364c
Added a function to add callbacks that are called when a logger is registered (#2883)
* Added a function to add callbacks that are called when a logger is registered

* Fix non captured registration 2 not being properly tested for

* Replace std::list by std::vector

* Remove const refs to shared pointers

* Fix missing header
2 years ago
gabime 0a53eafe18 update clang format again 2 years ago
gabime 9d52261185 clang format 2 years ago
gabime 1a0bfc7a89 clang format 2 years ago
gabime 1f61f5e019 clang format 2 years ago
afshinpir 51bcff820e
Added `apply_logger_env_levels` (#2649)
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.
3 years ago
gabime 070dd181df clang format 3 years ago
Nigel Stewart 1eaf98cc10 SPDLOG_NO_SOURCE_LOC implementation refinement 3 years ago
Nigel Stewart 57e5814364 SPDLOG_NO_SOURCE_LOC support for omitting __FILE__, __LINE__ and SPDLOG_FUNCTION information 3 years ago
Lucas CHOLLET dfe1009080 Expend support for any std::chrono::duration in `spdlog::flush_every`
This allows things like:

spdlog::flush_every(std::chrono::minutes(10));
spdlog::flush_every(std::chrono::milliseconds(100));
3 years ago
gabime dc030ec53c clang-format 4 years ago
Charless Milette 44a4517e2b Support C++20 std::format as an alternative to fmtlib 4 years ago
dkavolis d8f13cbd5b replace FormatString template argument with fmt::basic_format_string 4 years ago
gabime e7e8b75a4c clang-format 4 years ago
dkavolis 23572369fc Perfect forwarding for arguments 5 years ago
Christof Kaufmann 40160f2a57 Fix typo in comment 5 years ago
gabime 231ca50700 clang-format 5 years ago
Eyal Rozenberg 7009727559 Fix for issue #1627:
* Added: `spdlog::get_level()` API function - like `logger::level()`, except for the name change
* Added: `spdlog::should_log()` API function - like `logger: should_log()`
5 years ago
Joe Burzinski 741b0d6e82 Address code review comments: remove perfect forwarding on FormatString template parameters. 5 years ago
Joe Burzinski 3041faffab Address code review comments: revert perfect forwarding on places that didn't need it, remove negative compilation unit test. 5 years ago
Joe Burzinski 30ee690401 Add support for FMT_STRING compile time checking. Add negative compilation unit test for compilers and c++ standard that support relaxed constexpr. 5 years ago
Martin Vejdarski 0ca2cb625e Add shared library support for Windows 6 years ago
Gabi Melman 4cdb159ccb
Update spdlog.h 6 years ago
Gabi Melman fccb25586f
Update spdlog.h 6 years ago
Gabi Melman ab2f3307eb
Update spdlog.h 6 years ago
Gabi Melman db26a103d6
Update spdlog.h 6 years ago
Zhi Sun e8f7f80f2b Remove redundant semicolon 6 years ago
Cristian Morales Vega 7cdd65075c "#include" <spdlog/.*> instead of "spdlog/.*"
The meaning of using quotes to #include is implementation defined, so it
may or not may be what we want. At least POSIX
(https://pubs.opengroup.org/onlinepubs/9699919799/utilities/c99.html)
says: "headers whose names are enclosed in double-quotes ( "" ) shall be
searched for first in the directory of the file with the #include line",
so not what we want since "spdlog" ends up twice in the path.
6 years ago
gabime cae6c9ab36 Removed lazy argument evaluation from macros 6 years ago
Paul Kunysch eb4a169cfb Improve log macros 6 years ago
Florian Pigorsch 4aad51a352 Fix some spelling errors.
casese -> cases (1)
chache -> cache (1)
cirucal -> circular (1)
dependecy -> dependency (1)
detrmine -> determine (2)
eavluate -> evaluate (1)
exertnal -> external (1)
ony -> only (1)
registation -> registration (3)
registring -> registering (2)
regsistration -> registration (3)
seperate -> separate (2)
wit -> with (1)
withe -> with (1)
6 years ago
gabime 9a0a0c2d8c clang-format 6 years ago
gabime 9369fe8c27 Fix #1262 6 years ago
gabime bd9e1475e2 clang-format 6 years ago
gabime 65d02e495e Reverted the version() function 6 years ago
gabime 7f0398ca25 Added version() function 6 years ago
Zhiyuan "Jerry" Ma aa731e3297
Remove extra semicolon
... in macro SPDLOG_LOGGER_CALL
6 years ago
gabime 408a162044 Removed logger::clone() from API 6 years ago
gabime e1be7f3d6f Refactoring to better support backtrace 6 years ago
gabime a7f7984c4a backtrace support api 6 years ago
gabime dd33c16aae Replace backtrace trigger with dump_backtrace() 6 years ago
gabime a6d8b52686 Added enable_backtrace to spdlog_api 6 years ago
Charles Milette 59cbdaaf49
Add more source_loc overloads in spdlog namespace 6 years ago
Matthias Moulin ae92279f5c
Update spdlog.h 6 years ago
gabime 220608e52a clang-format 6 years ago
gabime 74e2aa9c66 Micoro optimize macros 6 years ago
gabime db5af8ead1 clang-format 6 years ago