Commit Graph

29 Commits

Author SHA1 Message Date
gabime
9d52261185 clang format 2023-09-25 16:08:29 +03:00
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.
2023-09-09 23:05:08 +03:00
gabime
1fba68bfe2 Catch exceptions from async logger. Fix #2618 2023-05-27 15:33:02 +03:00
Gabi Melman
6638c23cfc Update test_async.cpp 2021-12-11 16:42:17 +02:00
Charless Milette
44a4517e2b Support C++20 std::format as an alternative to fmtlib 2021-11-13 11:29:05 -05:00
Charles Milette
19dc30567e
Fix build errors 2021-01-06 18:55:57 -05:00
Francesco Biscani
fc1ce48dc7 Increase sleep time on a test case to avoid spurious failures. 2020-11-26 09:45:39 +01:00
gabime
b2017f5653 Fixed multiple clang-tidy warnings 2020-04-08 18:17:21 +03:00
Mario Emmenlauer
87acec6a91 Make tests support empty SPDLOG_EOL with new helper method require_message_count() 2020-02-10 11:26:48 +01:00
gabime
9b7812a0f2 auto create log dir 2019-10-20 17:40:56 +03:00
Luiz Siqueira
c543985cf4 use size_t instead of int for overrun counter 2018-08-14 09:21:52 -03:00
Luiz Siqueira
863f704f47 increment counter every time we overrid a message in async mode. 2018-08-14 08:51:20 -03:00
gabime
530e209f66 Fixed async tests to pass TASN checks 2018-08-14 00:58:50 +03:00
gabime
9e4925eff0 clang format 2018-07-21 23:48:07 +03:00
gabime
a96b4d7529 Added periodic flusher support, and fixed some registry issues 2018-07-21 23:30:26 +03:00
gabime
683dc0b216 Added async test to tests 2018-07-21 00:35:22 +03:00
gabime
989a10e48b Added async test to tests 2018-07-21 00:33:27 +03:00
gabime
2dfea6bee3 Fixed tests under windows 2018-07-21 00:13:37 +03:00
gabime
7ed8e1b59d renamed async block policy 2018-07-08 00:53:50 +03:00
gabime
cd4dcbab36 Renamed simple_file_sink -> basic_file_sink 2018-07-07 12:12:45 +03:00
gabime
94a7152afc async queue - overrun oldsest policy option 2018-07-04 01:24:52 +03:00
gabime
4b9949de7b format 2018-06-01 17:52:05 +03:00
gabime
7815d39807 removed wait_empty() from tp and q 2018-06-01 17:25:23 +03:00
gabime
ef5c4f027c added tp getter to async api 2018-05-27 03:14:55 +03:00
gabime
8338b45b2b added tp->wait_empty() 2018-05-27 02:53:16 +03:00
gabime
0d0a841e8d format 2018-05-27 02:21:49 +03:00
gabime
31ff43ef81 more async tests 2018-05-27 02:21:31 +03:00
gabime
0d7a1d1ef9 format 2018-05-26 18:48:39 +03:00
gabime
b9d7c45e40 Use blocking queue 2018-05-22 21:59:27 +03:00