Commit Graph

491 Commits (update-jetbrains-logo)

Author SHA1 Message Date
Gabi Melman 677a2d93e6
Update test_stopwatch.cpp 4 months ago
Gabi Melman 0d31acae28
Fmt 11.2.0 (#3399)
* Bump fmt to 11.2.0
4 months ago
Gabi Melman 943fcbd761
Register replace logger (#3398)
* Add register_or_replace(logger) to atomically replace logger in registry
* fix some  comments
4 months ago
Gabi Melman 7e022c4300
Feature 3379 (#3397)
* Fix #3379

* clang format
4 months ago
Gabi Melman 9c58257480
Fix zformatter on Apple and POSIX.1-2024 conforming platform (#3366)
* Add test case for #3351 (wrong GMT offset in SunOS/Solaris fallback)

* Fix #3352 (Missing test for Apple / POSIX.1-2024 chooses buggy workaround)

Apple platforms have had the tm_gmtoff-field at least since Mac OS X 10.0,
as are POSIX.1-2024 conforming systems, which are also required to support
it.

This has the unfortunate effect to use the SunOS/Solaris fallback, which
doesn't compute the correct value if the passed value of tm isn't the
current system time, i.e. localtime(::time()) (#3351).

* Fixed GMT offset test

---------

Co-authored-by: toh <toh@ableton.com>
5 months ago
Gabi Melman f355b3d58f Fix test_daily_logger 7 months ago
Ken Matsui ae1de0dc8c
Support custom environment variables for load_env_levels (#3327)
SPDLOG_LEVEL is currently supported to control log levels via
load_env_levels.

This patch adds support for other environment variable names, such as
MYAPP_LEVEL, for load_env_levels.
7 months ago
koniarik ad0f31c009
Enabled bin_to_hex utest for stdformat, fixed std::formatter (#3315)
* Enabled bin_to_hex utest for stdformat, and fixed std::formatter

* fixed usage of \ in macos.yml

* explicitly cast diff variable in test_sink

* moved from ::iterator to decltype

* added fix for custom callbacks

---------

Co-authored-by: Jan Koniarik <veverak@Jans-MacBook-Pro.local>
8 months ago
Matteo Del Seppia 65e388e82b
Adding on demand truncation for basic file sinks (#3280)
* Adding support to truncate on demand for basic file sink

* Remove unnecessary file close

* Adding lock in basic_file_sink truncate()
9 months ago
Gabi Melman 1e6250e183
Gabime/fwrite unlocked (#3276)
* Use locking fwrite_unlocked if possible

* Added compile definitions to header_only
9 months ago
hjs-ast 951c5b9987
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
captainurist fe4f99527d
Fix utf8_to_wstrbuf tests (#3245) 10 months ago
captainurist 5673e9e545
utf8_to_wstrbuf now handles invalid utf8 sequences (#3244) 10 months ago
Gabi Melman 9fe79692eb
Gabime/tsan (#3237)
* Fixed race condition in tests

* Support for thread sanitizer
10 months ago
gabime 96c9a62bfd Fixed race condition in tests 10 months ago
Gabi Melman 63d1884215
Gabime/async flush (#3235)
* Revert "Ensure flush callback gets called in move-assign operator (#3232)"

This reverts commit b6da59447f.

* Revert "Exchange promise for condition_variable when flushing (fixes #3221) (#3228)"

This reverts commit 16e0d2e77c.

* Revert PR #3049
10 months ago
allen_qfl 362214a349
fix/issue-3101: fix the issue where mdc ignores SPDLOG_NO_TLS (#3184)
Co-authored-by: dyf <yufeng.duan@senscape.com.cn>
12 months ago
gabime 22b0f4fc06 Clang format 1 year ago
gabime fa6605dc99 Fix compile 1 year ago
gabime 94a8e87c71 Fix #3079 1 year ago
Gabi Melman 62302019ba
Update test_async.cpp 1 year ago
Gabi Melman a19c76a4e7
Fix flush test in test_async.cpp 1 year ago
Gabi Melman ec661f98dc
Update test_async.cpp 1 year ago
Yubin 6725584e27
Make async_logger::flush() synchronous and wait for the flush to complete (#3049) 1 year ago
Massimiliano Riva d03eb40c17
Added Mapped Diagnostic Context (MDC) support (#2907)
* Added Mapped Diagnostic Context (MDC) support

* Update include statement

* Optimize string creation

* Fix includes

* Fix padding rules in mdc empty case

* Add comment to describe the use of mdc formatter
1 year ago
Dimitri Papadopoulos Orfanos 47b7e7c736
Fix typos found by codespell (#3011) 2 years ago
gabime c1569a3d29 Bump to catch2 v3.5.0 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
Yubin b5b5043d42
Support async_overflow_policy::discard_new (#2876)
Reason for the discard_new policy: when there is an overflow, there
is usually some unexpected issue (a bug, or some other unexpected stuff).
And in case of unexpected issue, the first arrived log messages are usually
more important than subsequent ones. For example, some application
keep logging error messages in case of functionality failure, which,
when using async_overflow_policy::overrun_oldest, will overrun the
first arrived messages that may contain real reason for the failure.
2 years ago
gabime a98d3ab0c7 clang format 2 years ago
albert-github 81ce5fcdb7
Remove obsolete part from cmake configuration files (#2871)
Updating minimum CMake version to 3.11
2 years ago
gabime 811bc4c7a9 Added another test for circular_q 2 years ago
gabime 1f8d36071e Fixed ci 2 years ago
gabime bffceb90b0 Fixed circular_q size impl and added tests 2 years ago
xvitaly 2ee8bac78e
Added missing square bracket to fix the level_to_string_view test. (#2827) 2 years ago
gabime 7e635fca68 Fixed #2724 by excluding bin_to_hex sink if using std::format 2 years ago
gabime 1f61f5e019 clang format 2 years ago
Gabi Melman c174c15138
Update test_stopwatch.cpp 2 years ago
Gabi Melman 8222ca4837
Update test_stopwatch.cpp 2 years ago
gabime 1fba68bfe2 Catch exceptions from async logger. Fix #2618 2 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
Vitaly Zaitsev 7f09c88817
Added Catch v3 support (#2661)
* Added Catch v3 support.

* Removed extra square brackets from some tests.
3 years ago
gabime 8be5b41a2f revert pr #2656 3 years ago
Vitaly Zaitsev 2a6d3e9f3b
Added Catch v3 support. (#2656) 3 years ago
gabime 60f5cb73a8 Revert commit 0e9ccd73ef 3 years ago