Commit Graph

354 Commits (d3997cc4d12b22ce7d1aba3c31da2610c5f1a9c5)

Author SHA1 Message Date
Paul Kunysch eb4a169cfb Improve log macros 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
gabime 594d226056 update tests 6 years ago
gabime c19e325b83 Added some tests for create_dir 6 years ago
gabime 88335bd92e clang-format 6 years ago
gabime dbe5c17a96 Renamed file_exists()->path_exists() 6 years ago
gabime c40555c0ac clang-format 6 years ago
gabime bfc76278a9 update tests 6 years ago
gabime a1f283946e updated os::dir_name and tests 6 years ago
gabime 066087b383 Update create_dir 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 a8f72424db Merge branch 'Issue-1248' of https://github.com/gabime/spdlog into Issue-1248 6 years ago
gabime 31ed133932 Added dir_name tests 6 years ago
Gabi Melman 5f3521b3d4
Update utils.cpp 6 years ago
gabime 9b7812a0f2 auto create log dir 6 years ago
Florian Pigorsch 4aad51a352 Fix some spelling errors.
casese -> cases (1)
chache -> cache (1)
cirucal -> circular (1)
dependecy -> dependency (1)
detrmine -> determine (2)
eavluate -> evaluate (1)
exertnal -> external (1)
ony -> only (1)
registation -> registration (3)
registring -> registering (2)
regsistration -> registration (3)
seperate -> separate (2)
wit -> with (1)
withe -> with (1)
6 years ago
gabime 9369fe8c27 Fix #1262 6 years ago
gabime 453be2e08a clang-format 6 years ago
gabime 83497e4dc9 Update test_stdout_api.cpp 6 years ago
gabime 3806a9c320 Added wchar api tests to windows 6 years ago
gabime e42867f0a8 Merge branch 'v1.x' of https://github.com/gabime/spdlog into v1.x 6 years ago
gabime fe20afac17 clang-format 6 years ago
Gabi Melman 10578ff08c
Update test_mpmc_q.cpp 6 years ago
gabime 7733849478 Updated meson build 6 years ago
gabime 545e7d2de8 Fixed clang warning 6 years ago
gabime a9ed6b352b Update utils.cpp 6 years ago
gabime 523eebe47d Update utils.cpp 6 years ago
gabime b303d8bc40 Update tests utils 6 years ago
Gabi Melman fcc6b97f88
Update utils.cpp 6 years ago
gabime adc4398cc5 Fixed widows tests 6 years ago
Gabi Melman c53d26cfca
Update utils.cpp 6 years ago
Gabi Melman c188bee229
Update utils.cpp 6 years ago
Gabi Melman 7f1a89e3f6
Update utils.cpp 6 years ago
gabime 5d46f3fcab Fix windows build 6 years ago
gabime b55d95d365 Update test utils for windows 6 years ago
gabime 494cc8bace Implemented daily sink rotation #661 6 years ago
gabime 5c2855e1c1 wip backtracer 6 years ago
gabime ed8d099607 Fixed #1197 6 years ago
gabime 2eb52cd047 Unified usage of fmt::memory_buffer across the codebase 6 years ago
gabime f5492aed12 Unified usage of fmt::memory_buffer across the codebase 6 years ago
gabime f4d3616c4b Update test_backtrace.cpp 6 years ago
gabime c97c025adb clang-format 6 years ago
gabime 13e9135935 Update test_backtrace.cpp 6 years ago
gabime 5c1e44a93d Added bactrace tests 6 years ago
gabime 75adf9e75e Improved test_sink in unit tests 6 years ago
gabime 408a162044 Removed logger::clone() from API 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
gabime f5831d5132 clang-format 6 years ago
Gabi Melman 7a686d4d21
Update CMakeLists.txt 6 years ago
Gabi Melman 7b218737cc
Merge pull request #1126 from mensinda/meson
Add meson support
6 years ago
gabime bb0f3839c1 Updated CMake options and defaults 6 years ago
Daniel Mensinger 822aee2b4f
Added meson build support 6 years ago
gabime f09334dc6f Updated pattern_foramtter tests 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
gabime 94c2810b0a Reduced max padding 128=>64 6 years ago
gabime f03eaaaf33 Fixed dup_filter test 6 years ago
gabime 71162ebdbb Fixed dup_filter test 6 years ago
gabime 29f2eeea31 Removed formatter_ member from the sink interface 6 years ago
Jorge Bellon-Castro a13981ffe4 Provide source location support for systemd_sink.h 6 years ago
gabime b279196af2 Added tests for dup_filter sink 6 years ago
gabime 98e151fda7 Added tests for dup_filter sink 6 years ago
gabime 6399e05209 clang-format 6 years ago
gabime 08de642536 Added stdout tests 6 years ago
gabime 78c833a09f clang-format 6 years ago
gabime b658ff2124 Fix unittests 6 years ago
Gabi Melman c844ea4423
Update test_pattern_formatter.cpp 6 years ago
gabime db5af8ead1 clang-format 6 years ago
gabime c09dee7717 Moved source filename shortening to pattern formatter instead of macro 6 years ago
gabime cf64f2baca Fixed CMake address sanitizer 6 years ago
gabime 68a0193d95 CMake refactoring to functions 6 years ago
gabime e39959a132 Updated tests to catch v2.8.0 6 years ago
gabime 33a42202c7 Replace string pointer with string_view in log_msg 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 ce637440bb wip static-lib 6 years ago
gabime 26a064ed2d wip static-lib 6 years ago
gabime 6bcb422c80 clang format and SPLDOG_HEADER_ONLY macro 6 years ago
gabime 2de924a187 clang-format 6 years ago
gabime ff89f1476d Restored error_handler as std::function 6 years ago
gabime baefe0b3f6 wip 6 years ago
gabime 17f9cdd401 static lib wip 6 years ago
gabime 6b0bf33f8e clang-format 7 years ago
gabime b084b8b1d8 Cleaned systemd test 7 years ago
gabime 3ca19a8580 fix link to systemd in tests 7 years ago
Alexander Zvyagin af80db8c22 Add systemd sink. 7 years ago
Philip Miller e41b92c55a fix inadvertent rename to original test function 7 years ago
Philip Miller 3925f8fa16 streamline constructor logic
and improve test for rotate_on_open=true
7 years ago
Philip Miller 4fe98bf6e6 Merge remote-tracking branch 'origin/v1.x' into pwm1234/rotate_on_open 7 years ago
Ben Ridder fb702f989f Fix typo in file_helper.h
* "extenstion" -> "extension"
7 years ago