Commit Graph

36 Commits (5284043ddb920e1d6187651e955bae2604682d23)

Author SHA1 Message Date
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
gabime 22b0f4fc06 Clang format 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
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 1fba68bfe2 Catch exceptions from async logger. Fix #2618 2 years ago
Gabi Melman 6638c23cfc Update test_async.cpp 4 years ago
Charless Milette 44a4517e2b Support C++20 std::format as an alternative to fmtlib 4 years ago
Charles Milette 19dc30567e
Fix build errors 5 years ago
Francesco Biscani fc1ce48dc7 Increase sleep time on a test case to avoid spurious failures. 5 years ago
gabime b2017f5653 Fixed multiple clang-tidy warnings 5 years ago
Mario Emmenlauer 87acec6a91 Make tests support empty SPDLOG_EOL with new helper method require_message_count() 6 years ago
gabime 9b7812a0f2 auto create log dir 6 years ago
Luiz Siqueira c543985cf4 use size_t instead of int for overrun counter 7 years ago
Luiz Siqueira 863f704f47 increment counter every time we overrid a message in async mode. 7 years ago
gabime 530e209f66 Fixed async tests to pass TASN checks 7 years ago
gabime 9e4925eff0 clang format 7 years ago
gabime a96b4d7529 Added periodic flusher support, and fixed some registry issues 7 years ago
gabime 683dc0b216 Added async test to tests 7 years ago
gabime 989a10e48b Added async test to tests 7 years ago
gabime 2dfea6bee3 Fixed tests under windows 7 years ago
gabime 7ed8e1b59d renamed async block policy 7 years ago
gabime cd4dcbab36 Renamed simple_file_sink -> basic_file_sink 7 years ago
gabime 94a7152afc async queue - overrun oldsest policy option 7 years ago
gabime 4b9949de7b format 7 years ago
gabime 7815d39807 removed wait_empty() from tp and q 7 years ago
gabime ef5c4f027c added tp getter to async api 7 years ago
gabime 8338b45b2b added tp->wait_empty() 7 years ago
gabime 0d0a841e8d format 7 years ago
gabime 31ff43ef81 more async tests 7 years ago
gabime 0d7a1d1ef9 format 7 years ago
gabime b9d7c45e40 Use blocking queue 7 years ago