Commit Graph

451 Commits (d7985e3965ba6f5df9675a1a7ce47eb355f56c43)

Author SHA1 Message Date
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
Jeeyong Um aa7490d187 Set eol to the test for overriding need_localtime 3 years ago
Jeeyong Um 38929f856d Allow overriding need_localtime for custom formatter 3 years ago
David Roman ece96216c4
fix clone async test
Fix #2363
3 years ago
Charles Milette cd4f6c1466
Replace fmt_helper::to_string by a macro 3 years ago
Charles Milette 37dd6bb159
Address PR review comments 3 years ago
Charles Milette 714cf12822
Add fmt_helper.h include to includes.h and os-inl.h 3 years ago
Charles Milette c203b4df8e
Fix conversion from fmt::memory_buffer to fmt::string_view 3 years ago
Charles Milette 56adf64ccf
Actually fix bad #ifdef 3 years ago
Charles Milette 91019f4f46
Fix bad #ifdef 3 years ago
Charles Milette ebeb3707b1
Switch to vformat_to
Drive-by: reduce the amount of occurences of #ifdef SPDLOG_USE_STD_FORMAT
3 years ago
Andrey Bugaevskiy 5ee969e4f6 Fix fopen_s error reporting with PREVENT_CHILD_FD 4 years ago
gabime c432fdd987 Bump fmt to version 8.1.1 and run clang-format 4 years ago
gabime 5b03dc1796 Throw if rotating_file_sink constructor receives max_size==0 as arg 4 years ago
Gabi Melman ad08f13aac Update test_file_helper.cpp 4 years ago
Gabi Melman 6638c23cfc Update test_async.cpp 4 years ago
Gabi Melman 378a42c887 Update test_file_helper.cpp 4 years ago
Gabi Melman 9abcf38b90 Update test_file_helper.cpp 4 years ago
gabime 8715f51c61 Fixed file_event_handlers test for windows 4 years ago
gabime 37cbab363e updated file_event_handlers tests 4 years ago
gabime afdcfc710e Updated file_event_handlers tests 4 years ago
gabime 16bc6d04ad Added file event handlers test 4 years ago
Gabi Melman 1f58535920 Fixed test_macros tests 4 years ago
Gabi Melman ca1eaedf7b
Update test_daily_logger.cpp 4 years ago
Gabi Melman 8bd5f4f883
Update test_daily_logger.cpp 4 years ago
gabime dc030ec53c clang-format 4 years ago
Charles Milette 484bf07379
Fix test_fmt_helper 4 years ago
Charless Milette ba120e524b Add unit test for daily_filename_format_calculator 4 years ago