Commit Graph

478 Commits (9fe79692eb2ce80ba8fd74e6deeeb97504331b27)

Author SHA1 Message Date
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
Gabi Melman 0e9ccd73ef
Removed use of SPDLOG_FMT_RUNTIME from test_errors.h 3 years ago
Gabi Melman 839ea957ab
Update test_stopwatch.cpp 3 years ago
Mohammad Ali 3cab260814
Add a trivial callback sink (#2610)
Add a trivial callback sink
3 years ago
Alok Priyadarshi a4e9917575
feat(mpmc_blocking_q): add blocking dequeue without timeout (#2588)
Use the new blocking dequeue to avoid unnecessarily waking up the
thread pool every 10s.

Fixes #2587 by replacing std::condition_variable::wait_for with
std::condition_variable::wait as a workaroung for gcc 11.3 issue 101978.

Co-authored-by: Alok Priyadarshi <alokp@dexterity.ai>
3 years ago
Gabi Melman dd0d0f68c4
Added compile mscv_sink.h to tests 3 years ago
György Katona 8512000f36
Unnecessary backtrace begin/end logs (#2568)
* add empty getter function to tracer

* add unit test to check empty tracer

Co-authored-by: Gyorgy Katona <gykatona@logmein.com>
3 years ago
Charles Milette 4f80077339
Support compile-time format string checking with std::format (#2544)
* Support compile-time format string checking with std::format

* Fix pre-VS 17.5 compilation

* Fix compilation without wchar_t support

* What am I doing

* Bring back fmt optimization

* Move to_string_view to common.h

* Fix SPDLOG_CONSTEXPR_FUNC emitting duplicate symbol errors when building in C++11

* Also add inline on VS 2013

* Appender doesn't work on wide strings
3 years ago
gabime 070dd181df clang format 3 years ago
offa 29b24f9e72 Use pragams instead of compile options 3 years ago
offa b8fdc9bf5d Workaround GCC 12 warning 3 years ago
Nicolas Benes 5ca5fdff9f Use lower-case "windows.h" for case-sensitive file systems
The "windows.h" in MinGW-W64 is lower-case. When cross-compiling for
Windows on Linux with a case-sensitive file system, the upper-case
"Windows.h" file is not found and compilation fails.

Always use lower-case "windows.h" to fix cross-compilation.
3 years ago
Rosen Penev 68f42a5b90 test_stopwatch: fix on mingw
There are some timing shenanigans with GCC's chrono that make this
unreliable. Add a start/stop and test for that to work around.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
3 years ago
Gabi Melman 9b4b373121
Merge pull request #2365 from conr2d/feature/need_localtime
Allow overriding need_localtime for custom formatter
3 years ago