Commit Graph

68 Commits (ae9627c64c4a14876ad676758eeef71146d0652f)

Author SHA1 Message Date
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
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
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
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
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 c10be7eaec merge with v1.x 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
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
gabime 877eee408e renamed loaders with cfg 6 years ago
gabime 1f8e9ad0fc renamed cfg namespace to loaders 6 years ago
gabime e13e978af4 added loaders tests 6 years ago
gabime 21f7f78130 Update tests CMakeLists.txt 6 years ago
gabime 10116b7717 Removed SPDLOG_NO_DATETIME option 6 years ago
gabime 18edb8bd63 Added tweakme options to CMakeLists.txt 6 years ago
gabime 2b8afb38b7 Revert pull #1288 6 years ago
David Yip 288ea11534 Use _FILE_OFFSET_BITS=64 when building tests on Linux 32-bit systems
When cross-compiling spdlog from x86-64 to armhf, I ran spdlog-utests
via qemu-arm and noticed that the "daily_logger rotate" test was failing
because count_files always returned zero.

Investigation of count_files revealed that readdir was returning nullptr
immediately and setting errno to 75, i.e. "value too large for defined
data type".  I suspected this had something to do with some 64 vs.
32-bit thing, so I added _FILE_OFFSET_BITS=64 to the build and that
seems to have made readdir happy.

It might be safe to add _FILE_OFFSET_BITS=64 for all Linux builds, but
it only seems to be necessary for the 32-bit case (which is a pretty
small audience these days -- I'm only building for armhf to target a
Raspberry Pi 3 running Raspbian, which runs in 32-bit mode).
6 years ago
gabime 4a620a2c5e Merge branch 'Issue-1248' into v1.x 6 years ago
Andrei-Florin BENCSIK 2cc620ef33 Function instead of macro
Be more consistent with the existing code and with the naming
_function -> function
6 years ago
Andrei-Florin BENCSIK cee705ccd3 Minor cmake code duplication improvement
Create a macro to add tests for both static/header only.

The only differneces between these two are the libraries they link
with and the target names. Created the simple macro:

_spdlog_prepare_test(<target> <spdlog_lib>)

which does the work.

Signed-off-by: Andrei-Florin BENCSIK <andrei.bencsik@gmail.com>
6 years ago
gabime 9b7812a0f2 auto create log dir 6 years ago
gabime 494cc8bace Implemented daily sink rotation #661 6 years ago
gabime 5c1e44a93d Added bactrace tests 6 years ago
gabime 0335e3fcc0 Print error and abort instead of throw if SPDLOG_NO_EXEPTIONS is defined 6 years ago
gabime b3ddef2fc2 Minor cmake fix in for tests 6 years ago
Gabi Melman 7a686d4d21
Update CMakeLists.txt 6 years ago
gabime bb0f3839c1 Updated CMake options and defaults 6 years ago
gabime 9aa6cdc494 Updated systemd sink and tests 6 years ago
Gabi Melman dc054c3f8a
Merge branch 'v1.x' into v1.x 6 years ago
Jorge Bellon-Castro a13981ffe4 Provide source location support for systemd_sink.h 6 years ago
gabime 98e151fda7 Added tests for dup_filter sink 6 years ago
gabime 08de642536 Added stdout tests 6 years ago
gabime cf64f2baca Fixed CMake address sanitizer 6 years ago
gabime 68a0193d95 CMake refactoring to functions 6 years ago
gabime 76fc166e11 CMakeLists.txt minor improvments 6 years ago
gabime fc53e3339f CMakeLists.txt minor improvments 6 years ago
gabime 30bd80bd85 CMake improvements 6 years ago
David Zemon dd2f293f33 Clean up CMake a bit more 6 years ago
David Zemon 6fe899af10 Set Threads::Threads dependency on spdlog libs - don't make user do it 6 years ago
David Zemon 55e7844ca0 Remove the namespaced
Namespaces are good for avoiding collisions, but since the
non-namespaced targets still exist, it does no good to add the
namespaced targets on top.
6 years ago
David Zemon 8dd85285e7 Allow user to choose between static or shared library 6 years ago
gabime 872ea6bf09 Deleted redundant Make files and solutions 6 years ago
gabime 3fa76b2d8f Renamed test filename 7 years ago
gabime 52e2722412 Renamed test filenames 7 years ago