Commit Graph

563 Commits (2d88c012e4c737c9477668e8b32aad5b06680fc6)

Author SHA1 Message Date
gabime 6cac90b89a clang format 2 years ago
gabime 92daf6954b Removed backtrace feature 2 years ago
gabime d94830814f Removed SPDLOG_WCHAR_TO_UTF8_SUPPORT 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
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
Charless Milette 2d77ef92b0 Avoid specializing std::formatter for std::tm (not a great idea after all) 4 years ago
Charless Milette f6901606f5 Add std::tm formatter, fix spdlog::stopwatch formatter, conditionally use fmt::runtime in test_errors 4 years ago
Charless Milette 44a4517e2b Support C++20 std::format as an alternative to fmtlib 4 years ago
Your Full Name d54b8e89c0 fixed #2058 by updating catch2 to v2.13.7 4 years ago
dkavolis d8f13cbd5b replace FormatString template argument with fmt::basic_format_string 4 years ago
gabime e7e8b75a4c clang-format 4 years ago
gabime 0035a0c98d Fixed dup sink compile warnings in older compilers with back_inserter 4 years ago
gabime 7b14a65b2b Fixed format_to deprecated warning by wrapping the buffer with std::back_inserter 4 years ago
Gabi Melman f2d1d573f5
Fix #1967 4 years ago
steven lunt ab72de5f7a Revert "added spdlog::level::set_string_view to enable alternate log level names without changing the build via SPDLOG_LEVEL_NAMES"
This reverts commit 2a16d1d230.
4 years ago
steven lunt 2a16d1d230 added spdlog::level::set_string_view to enable alternate log level names without changing the build via SPDLOG_LEVEL_NAMES 4 years ago
Charles Milette 9e19012cb0
Remove filename_memory_buf_t from headers 5 years ago
Charles Milette f0a4ddd78b
Fix character issues in test_errors.cpp 5 years ago
Charles Milette c691769e46
Fix other build errors and unit tests 5 years ago
Charles Milette 19dc30567e
Fix build errors 5 years ago
Charles Milette a453bccff0
Better support for / separators on Windows, improve wchar filename coverage 5 years ago
ryan-rsm-mckenzie 030d85a9b3 ensure stdout color sinks do not leak windows headers with SPDLOG_COMPILED_LIB 5 years ago
Francesco Biscani fc1ce48dc7 Increase sleep time on a test case to avoid spurious failures. 5 years ago
gabime 3bed78356e Added cfg tests 5 years ago
gabime 8923922f30 Cleaned level loading from env var 5 years ago
gabime 231ca50700 clang-format 5 years ago
gabime 1ac2dcc537 wip fix #1680 again 5 years ago
gabime 3a68eecb28 Fix issue #1680 5 years ago
gabime 32b6f1619f Added tests for issue #1680 5 years ago
gabime 934a9bb23e Fix issue #1617 5 years ago
gabime d6329b9dce Added some stopwatch tests 5 years ago
gabime cd701761f9 clang-format 5 years ago
Raul Tambre 76cdeb62e3 Don't enable C language in CMake
spdlog doesn't seem to actually require the C language.
Not enabling it results in a significant initial configure time speedup.
5 years ago
Raul Tambre ae9627c64c Raise CMake requirement to 3.13
* Reduces the range of possible version we'd need to test with.
* Enables newer policies reducing possible deprecation warnings from new policies.
* Allows removing some code for compatibility with older versions.
* Coincides with LLVM's bump to requiring CMake 3.13.
5 years ago
Konstantin Podsvirov 075dcee042 Twice tolerance waiting time with MinGW
Increased tolerance waiting time for MinGW in dequeue-empty-nowait test
case, because this test case not passed on slow and powerful computers.
5 years ago
gabime a0dae55a69 Revert 7f15fb2a21 since it breaks the ABI 5 years ago
Tamas Florin 071206ef59 Add support for custom filename calculator in rotating_file_sink. 5 years ago
Gabi Melman b6c6b30c0d
Delete meson.build 5 years ago
gabime 75c15e8028 Formatted cmake 5 years ago
gabime ff0e430e46 Formatted cmake using cmake-format 5 years ago
Bruce Mitchener 937fe7e909 cmake: Fix tabs, whitespace at EOL. 5 years ago
Gabi Melman 3ac9540351
Update test_file_helper.cpp 5 years ago
Gabi Melman d5709c9d70
temp test appveoyr 5 years ago
gabime 81444265f4 clang-format 5 years ago
Ron Rechenmacher 9e6f5b6b2d add single logger method and log_msg constructor and tests/test_time_point.cpp 5 years ago
gabime 854abdf5e6 Added cmake option SPDLOG_BUILD_ALL 5 years ago
Gabi Melman 34244656a6
Update test_fmt_helper.cpp 5 years ago
gabime a8169a3d6b clang-format 5 years ago
gabime d09e03606c Fixed multiple clang-tidy warnings 5 years ago
gabime b2017f5653 Fixed multiple clang-tidy warnings 5 years ago
gabime c16eb80d7f Fixed multiple clang-tidy warnings 5 years ago
Gabi Melman f57378d8ba
Update test_eventlog.cpp 5 years ago
gabime 0a5ada6411 clang-format 6 years ago
gabime 963f8d3485 Fixed tests 6 years ago
Gabi Melman 60a8c5f1c9 Added padding support and set_pattern to custom_flags 6 years ago
Gabi Melman 752d5685dc Moved pattern formatter from spdlog/details to spdlog/ 6 years ago
Gabi Melman c6c517431f wip custom formatter flags 6 years ago
Crunkle a10763138e Fix Windows setenv check 6 years ago
gabime d1819f5f76 clang-format 6 years ago
gabime 7efdcc26fe CMakeLists.txt: use same policy as fmt 6 years ago
gabime 3ab3970dd2 CMakeLists.txt: use same policy as fmt 6 years ago
gabime d14b8a9ad6 Merge branch 'hexdump' of https://github.com/ngugcx/spdlog into ngugcx-hexdump 6 years ago
ngugcx 0f87ba6c93 fix a test case error. 6 years ago
ngugcx f5313f92f1 Enhance to_hex like the unix command hexdump. 6 years ago
gabime efd73ac956 Merge remote-tracking branch 'origin/v1.x' into conf-env3 6 years ago
gabime b7d7334451 Renamed level loaders 6 years ago
gabime 817d2764b6 Fix bench tidy warning 6 years ago
gabime c10be7eaec merge with v1.x 6 years ago
gabime 5370443ece clang-format 6 years ago
Gabi Melman 12f36debae Merge pull request #1414 from BioDataAnalysis/bda_tests_support_empty_eol
Make tests support empty SPDLOG_EOL
6 years ago
Mario Emmenlauer 87acec6a91 Make tests support empty SPDLOG_EOL with new helper method require_message_count() 6 years ago
Mario Emmenlauer 58a5e654f9 tests/utils.cpp: Use binary mode for reading test results, to preserve EOL 6 years ago
gabime 601bdfb1b4 Minor cleanup 6 years ago
gabime 90454a93b2 Update test_eventlog.cpp 6 years ago
Gabi Melman fccee959b1
Merge pull request #1418 from ban-dana/v1.x
Add eventlog_sink for logging to Windows Event Log (local only)
6 years ago
bandana2004 4bece787c8 Refactor Event Log sink 6 years ago
Michael R. Crusoe a8d6e60ec6
Enable running the tests against an installed copy of spdlog 6 years ago
tt4g eb234bbf91 Don't run spdlog-utests and spdlog-utests-ho in parallel
spdlog-utests and spdlog-utests-ho use the same log output directory, so some tests will randomly fail when run in parallel.
6 years ago
bandana2004 db1a221427 Add eventlog_sink for logging to Windows Event Log (local only). 6 years ago
Mario Emmenlauer 622f5eb967 tests/utils.h: removed duplicate entry for count_lines() 6 years ago
gabime 284e6a80ac Fixed cfg tests 6 years ago
gabime 877eee408e renamed loaders with cfg 6 years ago
Gabi Melman 2544fca519
Update test_loaders.cpp 6 years ago
Gabi Melman 0b55e2c332
Update test_loaders.cpp 6 years ago
gabime b105046202 Fixed loaders tests 6 years ago
gabime de20255c71 wip 6 years ago
gabime 1a1c37db7c wip 6 years ago
gabime a87700a28c wip 6 years ago
gabime 1f8e9ad0fc renamed cfg namespace to loaders 6 years ago
gabime e13e978af4 added loaders tests 6 years ago
gabime 28e334c728 Fixed tests 6 years ago
gabime 3a61dcd360 Aceept also 'warn' string in level::from_str() 6 years ago
gabime d25fb08a75 clang-format 6 years ago