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
a98d3ab0c7
clang format
2023-09-09 12:56:47 +03:00
albert-github
81ce5fcdb7
Remove obsolete part from cmake configuration files ( #2871 )
...
Updating minimum CMake version to 3.11
2023-08-30 23:20:37 +03:00
gabime
811bc4c7a9
Added another test for circular_q
2023-08-05 17:26:16 +03:00
gabime
1f8d36071e
Fixed ci
2023-08-05 17:09:12 +03:00
gabime
bffceb90b0
Fixed circular_q size impl and added tests
2023-08-05 17:03:04 +03:00
xvitaly
2ee8bac78e
Added missing square bracket to fix the level_to_string_view test. ( #2827 )
2023-07-23 11:15:25 +03:00
gabime
7e635fca68
Fixed #2724 by excluding bin_to_hex sink if using std::format
2023-07-08 17:12:25 +03:00
gabime
1f61f5e019
clang format
2023-06-07 13:23:44 +03:00
Gabi Melman
c174c15138
Update test_stopwatch.cpp
2023-05-27 23:05:49 +03:00
Gabi Melman
8222ca4837
Update test_stopwatch.cpp
2023-05-27 22:46:27 +03:00
gabime
1fba68bfe2
Catch exceptions from async logger. Fix #2618
2023-05-27 15:33:02 +03:00
Gabi Melman
2a861d28bd
Update test_errors.cpp
2023-03-05 21:43:07 +02:00
Gabi Melman
febc1e233d
Update test_errors.cpp
2023-03-05 21:34:02 +02:00
Gabi Melman
763ff37348
Update test_errors.cpp
2023-03-05 21:30:29 +02:00
Vitaly Zaitsev
7f09c88817
Added Catch v3 support ( #2661 )
...
* Added Catch v3 support.
* Removed extra square brackets from some tests.
2023-03-01 13:51:04 +02:00
gabime
8be5b41a2f
revert pr #2656
2023-03-01 01:12:50 +02:00
Vitaly Zaitsev
2a6d3e9f3b
Added Catch v3 support. ( #2656 )
2023-03-01 00:16:39 +02:00
gabime
60f5cb73a8
Revert commit 0e9ccd73ef
2023-02-26 14:00:43 +02:00
Gabi Melman
0e9ccd73ef
Removed use of SPDLOG_FMT_RUNTIME from test_errors.h
2023-02-26 13:48:42 +02:00
Gabi Melman
839ea957ab
Update test_stopwatch.cpp
2023-02-26 02:31:12 +02:00
Mohammad Ali
3cab260814
Add a trivial callback sink ( #2610 )
...
Add a trivial callback sink
2023-01-19 19:46:34 +02:00
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>
2022-12-30 15:20:10 +02:00
Gabi Melman
dd0d0f68c4
Added compile mscv_sink.h to tests
2022-12-10 00:25:31 +02:00
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>
2022-12-09 10:25:17 +02:00
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
2022-11-12 23:07:11 +02:00
gabime
070dd181df
clang format
2022-10-31 17:09:45 +02:00
offa
29b24f9e72
Use pragams instead of compile options
2022-09-30 13:20:15 +02:00
offa
b8fdc9bf5d
Workaround GCC 12 warning
2022-09-29 19:28:44 +02:00
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.
2022-09-26 12:42:01 +02:00
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>
2022-06-25 19:07:36 -07:00
Gabi Melman
9b4b373121
Merge pull request #2365 from conr2d/feature/need_localtime
...
Allow overriding need_localtime for custom formatter
2022-05-07 21:53:32 +03:00
Jeeyong Um
aa7490d187
Set eol to the test for overriding need_localtime
2022-05-08 01:20:27 +08:00
Jeeyong Um
38929f856d
Allow overriding need_localtime for custom formatter
2022-05-07 20:44:00 +08:00
David Roman
ece96216c4
fix clone async test
...
Fix #2363
2022-05-07 12:30:41 +02:00
Charles Milette
cd4f6c1466
Replace fmt_helper::to_string by a macro
2022-04-26 23:25:35 -04:00
Charles Milette
37dd6bb159
Address PR review comments
2022-04-25 21:59:56 -04:00
Charles Milette
714cf12822
Add fmt_helper.h include to includes.h and os-inl.h
2022-04-22 23:28:28 -04:00
Charles Milette
c203b4df8e
Fix conversion from fmt::memory_buffer to fmt::string_view
2022-04-21 23:38:12 -04:00
Charles Milette
56adf64ccf
Actually fix bad #ifdef
2022-04-21 22:43:13 -04:00
Charles Milette
91019f4f46
Fix bad #ifdef
2022-04-21 22:36:04 -04:00
Charles Milette
ebeb3707b1
Switch to vformat_to
...
Drive-by: reduce the amount of occurences of #ifdef SPDLOG_USE_STD_FORMAT
2022-04-21 21:59:02 -04:00
Andrey Bugaevskiy
5ee969e4f6
Fix fopen_s error reporting with PREVENT_CHILD_FD
2022-03-11 19:22:45 +00:00
gabime
c432fdd987
Bump fmt to version 8.1.1 and run clang-format
2022-02-12 13:20:15 +02:00
gabime
5b03dc1796
Throw if rotating_file_sink constructor receives max_size==0 as arg
2022-02-05 17:37:55 +02:00
Gabi Melman
ad08f13aac
Update test_file_helper.cpp
2021-12-11 16:42:27 +02:00
Gabi Melman
6638c23cfc
Update test_async.cpp
2021-12-11 16:42:17 +02:00
Gabi Melman
378a42c887
Update test_file_helper.cpp
2021-12-11 16:42:00 +02:00
Gabi Melman
9abcf38b90
Update test_file_helper.cpp
2021-12-11 16:41:49 +02:00