gabime
dc030ec53c
clang-format
2021-11-16 23:44:35 +02:00
Charles Milette
484bf07379
Fix test_fmt_helper
2021-11-15 18:34:40 -05:00
Charless Milette
ba120e524b
Add unit test for daily_filename_format_calculator
2021-11-15 15:46:22 -05:00
Charless Milette
2d77ef92b0
Avoid specializing std::formatter for std::tm (not a great idea after all)
2021-11-15 15:27:34 -05:00
Charless Milette
f6901606f5
Add std::tm formatter, fix spdlog::stopwatch formatter, conditionally use fmt::runtime in test_errors
2021-11-15 14:57:13 -05:00
Charless Milette
44a4517e2b
Support C++20 std::format as an alternative to fmtlib
2021-11-13 11:29:05 -05:00
Your Full Name
d54b8e89c0
fixed #2058 by updating catch2 to v2.13.7
2021-09-08 13:23:36 +03:00
dkavolis
d8f13cbd5b
replace FormatString template argument with fmt::basic_format_string
2021-07-22 16:23:56 +01:00
gabime
e7e8b75a4c
clang-format
2021-07-19 00:50:51 +03:00
gabime
0035a0c98d
Fixed dup sink compile warnings in older compilers with back_inserter
2021-06-28 12:09:39 +03:00
gabime
7b14a65b2b
Fixed format_to deprecated warning by wrapping the buffer with std::back_inserter
2021-06-24 17:07:14 +03:00
Gabi Melman
f2d1d573f5
Fix #1967
2021-06-07 22:39:42 +03:00
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
.
2021-05-18 19:25:07 -04:00
steven lunt
2a16d1d230
added spdlog::level::set_string_view to enable alternate log level names without changing the build via SPDLOG_LEVEL_NAMES
2021-03-24 16:22:54 -04:00
Charles Milette
9e19012cb0
Remove filename_memory_buf_t from headers
2021-01-10 18:19:28 -05:00
Charles Milette
f0a4ddd78b
Fix character issues in test_errors.cpp
2021-01-06 20:00:59 -05:00
Charles Milette
c691769e46
Fix other build errors and unit tests
2021-01-06 19:39:47 -05:00
Charles Milette
19dc30567e
Fix build errors
2021-01-06 18:55:57 -05:00
Charles Milette
a453bccff0
Better support for / separators on Windows, improve wchar filename coverage
2021-01-06 04:15:14 -05:00
ryan-rsm-mckenzie
030d85a9b3
ensure stdout color sinks do not leak windows headers with SPDLOG_COMPILED_LIB
2020-12-26 03:45:12 -08:00
Francesco Biscani
fc1ce48dc7
Increase sleep time on a test case to avoid spurious failures.
2020-11-26 09:45:39 +01:00
gabime
3bed78356e
Added cfg tests
2020-09-27 02:10:52 +03:00
gabime
8923922f30
Cleaned level loading from env var
2020-09-27 02:08:24 +03:00
gabime
231ca50700
clang-format
2020-09-26 15:34:05 +03:00
gabime
1ac2dcc537
wip fix #1680 again
2020-09-26 14:41:33 +03:00
gabime
3a68eecb28
Fix issue #1680
2020-09-25 18:19:50 +03:00
gabime
32b6f1619f
Added tests for issue #1680
2020-09-25 14:44:01 +03:00
gabime
934a9bb23e
Fix issue #1617
2020-08-30 15:18:33 +03:00
gabime
d6329b9dce
Added some stopwatch tests
2020-08-29 03:25:16 +03:00
gabime
cd701761f9
clang-format
2020-08-26 00:10:05 +03:00
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.
2020-07-21 11:39:40 +03:00
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.
2020-07-20 22:03:50 +03:00
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.
2020-06-10 23:44:30 +03:00
gabime
a0dae55a69
Revert 7f15fb2a21
since it breaks the ABI
2020-06-07 14:38:16 +03:00
Tamas Florin
071206ef59
Add support for custom filename calculator in rotating_file_sink.
2020-06-04 13:38:21 +03:00
Gabi Melman
b6c6b30c0d
Delete meson.build
2020-05-02 18:53:40 +03:00
gabime
75c15e8028
Formatted cmake
2020-05-02 11:42:08 +03:00
gabime
ff0e430e46
Formatted cmake using cmake-format
2020-05-02 11:38:14 +03:00
Bruce Mitchener
937fe7e909
cmake: Fix tabs, whitespace at EOL.
2020-05-02 07:17:15 +07:00
Gabi Melman
3ac9540351
Update test_file_helper.cpp
2020-04-29 14:50:25 +03:00
Gabi Melman
d5709c9d70
temp test appveoyr
2020-04-29 14:15:52 +03:00
gabime
81444265f4
clang-format
2020-04-19 11:33:36 +03:00
Ron Rechenmacher
9e6f5b6b2d
add single logger method and log_msg constructor and tests/test_time_point.cpp
2020-04-18 08:58:11 -05:00
gabime
854abdf5e6
Added cmake option SPDLOG_BUILD_ALL
2020-04-12 02:43:42 +03:00
Gabi Melman
34244656a6
Update test_fmt_helper.cpp
2020-04-11 21:09:48 +03:00
gabime
a8169a3d6b
clang-format
2020-04-10 15:35:58 +03:00
gabime
d09e03606c
Fixed multiple clang-tidy warnings
2020-04-08 18:18:27 +03:00
gabime
b2017f5653
Fixed multiple clang-tidy warnings
2020-04-08 18:17:21 +03:00
gabime
c16eb80d7f
Fixed multiple clang-tidy warnings
2020-04-08 17:04:10 +03:00
Gabi Melman
f57378d8ba
Update test_eventlog.cpp
2020-03-28 13:59:59 +03:00
gabime
0a5ada6411
clang-format
2020-03-21 15:25:26 +02:00
gabime
963f8d3485
Fixed tests
2020-03-21 15:25:05 +02:00
Gabi Melman
60a8c5f1c9
Added padding support and set_pattern to custom_flags
2020-03-21 15:03:41 +02:00
Gabi Melman
752d5685dc
Moved pattern formatter from spdlog/details to spdlog/
2020-03-21 13:33:04 +02:00
Gabi Melman
c6c517431f
wip custom formatter flags
2020-03-20 16:09:30 +02:00
Crunkle
a10763138e
Fix Windows setenv check
2020-03-18 09:46:32 +00:00
gabime
d1819f5f76
clang-format
2020-03-15 18:51:52 +02:00
gabime
7efdcc26fe
CMakeLists.txt: use same policy as fmt
2020-03-15 18:41:34 +02:00
gabime
3ab3970dd2
CMakeLists.txt: use same policy as fmt
2020-03-15 18:40:42 +02:00
gabime
d14b8a9ad6
Merge branch 'hexdump' of https://github.com/ngugcx/spdlog into ngugcx-hexdump
2020-03-15 16:27:58 +02:00
ngugcx
0f87ba6c93
fix a test case error.
2020-03-15 20:21:58 +08:00
ngugcx
f5313f92f1
Enhance to_hex like the unix command hexdump.
2020-03-15 12:01:31 +08:00
gabime
efd73ac956
Merge remote-tracking branch 'origin/v1.x' into conf-env3
2020-03-06 15:10:24 +02:00
gabime
b7d7334451
Renamed level loaders
2020-03-06 15:09:46 +02:00
gabime
817d2764b6
Fix bench tidy warning
2020-03-03 23:53:28 +02:00
gabime
c10be7eaec
merge with v1.x
2020-02-26 18:13:13 +02:00
gabime
5370443ece
clang-format
2020-02-10 17:13:41 +02:00
Gabi Melman
12f36debae
Merge pull request #1414 from BioDataAnalysis/bda_tests_support_empty_eol
...
Make tests support empty SPDLOG_EOL
2020-02-10 13:12:07 +02:00
Mario Emmenlauer
87acec6a91
Make tests support empty SPDLOG_EOL with new helper method require_message_count()
2020-02-10 11:26:48 +01:00
Mario Emmenlauer
58a5e654f9
tests/utils.cpp: Use binary mode for reading test results, to preserve EOL
2020-02-10 11:26:48 +01:00
gabime
601bdfb1b4
Minor cleanup
2020-02-10 00:53:01 +02:00
gabime
90454a93b2
Update test_eventlog.cpp
2020-02-10 00:37:48 +02:00
Gabi Melman
fccee959b1
Merge pull request #1418 from ban-dana/v1.x
...
Add eventlog_sink for logging to Windows Event Log (local only)
2020-02-09 23:27:00 +02:00
bandana2004
4bece787c8
Refactor Event Log sink
2020-02-09 15:12:30 +02:00
Michael R. Crusoe
a8d6e60ec6
Enable running the tests against an installed copy of spdlog
2020-02-07 15:39:26 +01:00
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.
2020-02-07 22:20:54 +09:00
bandana2004
db1a221427
Add eventlog_sink for logging to Windows Event Log (local only).
2020-02-07 15:04:47 +02:00
Mario Emmenlauer
622f5eb967
tests/utils.h: removed duplicate entry for count_lines()
2020-02-07 10:22:58 +01:00
gabime
284e6a80ac
Fixed cfg tests
2019-12-22 22:33:19 +02:00
gabime
877eee408e
renamed loaders with cfg
2019-12-22 20:40:19 +02:00
Gabi Melman
2544fca519
Update test_loaders.cpp
2019-12-22 08:58:36 +02:00
Gabi Melman
0b55e2c332
Update test_loaders.cpp
2019-12-22 00:17:32 +02:00
gabime
b105046202
Fixed loaders tests
2019-12-21 20:15:18 +02:00
gabime
de20255c71
wip
2019-12-21 20:01:25 +02:00
gabime
1a1c37db7c
wip
2019-12-21 19:59:23 +02:00
gabime
a87700a28c
wip
2019-12-21 19:52:37 +02:00
gabime
1f8e9ad0fc
renamed cfg namespace to loaders
2019-12-21 19:45:14 +02:00
gabime
e13e978af4
added loaders tests
2019-12-21 19:25:54 +02:00
gabime
28e334c728
Fixed tests
2019-12-21 18:52:35 +02:00
gabime
3a61dcd360
Aceept also 'warn' string in level::from_str()
2019-12-13 16:22:20 +02:00
gabime
d25fb08a75
clang-format
2019-11-29 12:50:54 +02:00
gabime
cee35f7d24
Added truncate flag (issue #1297 )
2019-11-14 12:28:23 +02:00
gabime
436ce16e79
Updated meson tests build
2019-11-05 00:31:36 +02:00
gabime
a13b0abb7d
Simplify meson for tests
2019-11-04 23:29:05 +02:00
gabime
21f7f78130
Update tests CMakeLists.txt
2019-11-04 23:16:44 +02:00
gabime
bb1b24c178
Fixed #1295
2019-11-04 23:16:21 +02:00
gabime
10116b7717
Removed SPDLOG_NO_DATETIME option
2019-11-04 17:43:30 +02:00
gabime
18edb8bd63
Added tweakme options to CMakeLists.txt
2019-11-04 17:19:18 +02:00
gabime
e3699070a4
clang-format
2019-11-03 17:07:37 +02:00
gabime
cae6c9ab36
Removed lazy argument evaluation from macros
2019-11-03 15:19:59 +02:00
Paul Kunysch
eb4a169cfb
Improve log macros
2019-11-02 09:40:37 +01:00
gabime
2b8afb38b7
Revert pull #1288
2019-10-28 23:41:40 +02:00
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).
2019-10-28 13:23:01 -05:00
gabime
4a620a2c5e
Merge branch 'Issue-1248' into v1.x
2019-10-25 16:56:26 +03:00
gabime
594d226056
update tests
2019-10-25 16:20:24 +03:00
gabime
c19e325b83
Added some tests for create_dir
2019-10-25 16:17:02 +03:00
gabime
88335bd92e
clang-format
2019-10-25 16:05:12 +03:00
gabime
dbe5c17a96
Renamed file_exists()->path_exists()
2019-10-25 15:56:23 +03:00
gabime
c40555c0ac
clang-format
2019-10-25 15:44:53 +03:00
gabime
bfc76278a9
update tests
2019-10-25 15:24:54 +03:00
gabime
a1f283946e
updated os::dir_name and tests
2019-10-25 14:29:57 +03:00
gabime
066087b383
Update create_dir
2019-10-25 14:14:50 +03:00
Andrei-Florin BENCSIK
2cc620ef33
Function instead of macro
...
Be more consistent with the existing code and with the naming
_function -> function
2019-10-25 11:15:07 +03:00
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>
2019-10-24 22:57:47 +03:00
gabime
a8f72424db
Merge branch 'Issue-1248' of https://github.com/gabime/spdlog into Issue-1248
2019-10-21 13:43:57 +03:00
gabime
31ed133932
Added dir_name tests
2019-10-21 13:42:25 +03:00
Gabi Melman
5f3521b3d4
Update utils.cpp
2019-10-20 17:55:13 +03:00
gabime
9b7812a0f2
auto create log dir
2019-10-20 17:40:56 +03:00
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)
2019-10-19 09:42:38 +02:00
gabime
9369fe8c27
Fix #1262
2019-10-09 21:41:02 +03:00
gabime
453be2e08a
clang-format
2019-09-23 12:38:19 +03:00
gabime
83497e4dc9
Update test_stdout_api.cpp
2019-09-23 12:11:12 +03:00
gabime
3806a9c320
Added wchar api tests to windows
2019-09-23 12:06:21 +03:00
gabime
e42867f0a8
Merge branch 'v1.x' of https://github.com/gabime/spdlog into v1.x
2019-09-21 18:35:33 +03:00
gabime
fe20afac17
clang-format
2019-09-21 18:16:38 +03:00
Gabi Melman
10578ff08c
Update test_mpmc_q.cpp
2019-09-21 15:49:54 +03:00
gabime
7733849478
Updated meson build
2019-09-18 15:01:23 +03:00
gabime
545e7d2de8
Fixed clang warning
2019-09-16 23:50:56 +03:00
gabime
a9ed6b352b
Update utils.cpp
2019-09-16 11:58:51 +03:00
gabime
523eebe47d
Update utils.cpp
2019-09-16 11:58:26 +03:00
gabime
b303d8bc40
Update tests utils
2019-09-16 11:56:56 +03:00
Gabi Melman
fcc6b97f88
Update utils.cpp
2019-09-15 21:01:15 +03:00
gabime
adc4398cc5
Fixed widows tests
2019-09-15 20:56:20 +03:00
Gabi Melman
c53d26cfca
Update utils.cpp
2019-09-15 19:15:35 +03:00
Gabi Melman
c188bee229
Update utils.cpp
2019-09-15 19:09:57 +03:00
Gabi Melman
7f1a89e3f6
Update utils.cpp
2019-09-15 18:49:19 +03:00
gabime
5d46f3fcab
Fix windows build
2019-09-15 18:44:45 +03:00
gabime
b55d95d365
Update test utils for windows
2019-09-15 18:38:31 +03:00
gabime
494cc8bace
Implemented daily sink rotation #661
2019-09-15 18:34:29 +03:00
gabime
5c2855e1c1
wip backtracer
2019-09-05 01:25:00 +03:00
gabime
ed8d099607
Fixed #1197
2019-08-29 01:05:23 +03:00
gabime
2eb52cd047
Unified usage of fmt::memory_buffer across the codebase
2019-08-28 18:50:11 +03:00
gabime
f5492aed12
Unified usage of fmt::memory_buffer across the codebase
2019-08-28 18:46:09 +03:00
gabime
f4d3616c4b
Update test_backtrace.cpp
2019-08-28 15:59:58 +03:00
gabime
c97c025adb
clang-format
2019-08-27 20:22:07 +03:00
gabime
13e9135935
Update test_backtrace.cpp
2019-08-27 19:45:21 +03:00
gabime
5c1e44a93d
Added bactrace tests
2019-08-27 18:06:27 +03:00
gabime
75adf9e75e
Improved test_sink in unit tests
2019-08-27 17:18:09 +03:00
gabime
408a162044
Removed logger::clone() from API
2019-08-27 01:16:57 +03:00
gabime
0335e3fcc0
Print error and abort instead of throw if SPDLOG_NO_EXEPTIONS is defined
2019-08-19 11:31:33 +03:00