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
gabime
b3ddef2fc2
Minor cmake fix in for tests
2019-07-07 14:09:23 +03:00
gabime
f5831d5132
clang-format
2019-07-05 10:45:37 +03:00
Gabi Melman
7a686d4d21
Update CMakeLists.txt
2019-07-01 15:03:53 +03:00
Gabi Melman
7b218737cc
Merge pull request #1126 from mensinda/meson
...
Add meson support
2019-07-01 14:53:46 +03:00
gabime
bb0f3839c1
Updated CMake options and defaults
2019-07-01 02:06:09 +03:00
Daniel Mensinger
822aee2b4f
Added meson build support
2019-06-30 16:27:28 +02:00
gabime
f09334dc6f
Updated pattern_foramtter tests
2019-06-28 17:31:55 +03:00
gabime
9aa6cdc494
Updated systemd sink and tests
2019-06-28 17:29:52 +03:00
Gabi Melman
dc054c3f8a
Merge branch 'v1.x' into v1.x
2019-06-28 08:07:15 +03:00
gabime
94c2810b0a
Reduced max padding 128=>64
2019-06-28 01:41:11 +03:00
gabime
f03eaaaf33
Fixed dup_filter test
2019-06-28 00:48:30 +03:00
gabime
71162ebdbb
Fixed dup_filter test
2019-06-28 00:47:10 +03:00
gabime
29f2eeea31
Removed formatter_ member from the sink interface
2019-06-27 23:56:37 +03:00
Jorge Bellon-Castro
a13981ffe4
Provide source location support for systemd_sink.h
2019-06-27 18:18:48 +01:00
gabime
b279196af2
Added tests for dup_filter sink
2019-06-27 17:41:04 +03:00
gabime
98e151fda7
Added tests for dup_filter sink
2019-06-27 17:40:40 +03:00
gabime
6399e05209
clang-format
2019-06-20 01:05:57 +03:00
gabime
08de642536
Added stdout tests
2019-06-20 01:02:54 +03:00
gabime
78c833a09f
clang-format
2019-06-18 17:05:27 +03:00
gabime
b658ff2124
Fix unittests
2019-06-14 18:45:16 +03:00
Gabi Melman
c844ea4423
Update test_pattern_formatter.cpp
2019-06-14 01:30:43 +03:00
gabime
db5af8ead1
clang-format
2019-06-14 00:23:51 +03:00
gabime
c09dee7717
Moved source filename shortening to pattern formatter instead of macro
2019-06-14 00:23:25 +03:00
gabime
cf64f2baca
Fixed CMake address sanitizer
2019-06-10 18:32:10 +03:00
gabime
68a0193d95
CMake refactoring to functions
2019-06-10 18:09:36 +03:00
gabime
e39959a132
Updated tests to catch v2.8.0
2019-06-04 16:35:34 +03:00
gabime
33a42202c7
Replace string pointer with string_view in log_msg
2019-06-04 16:10:49 +03:00
gabime
76fc166e11
CMakeLists.txt minor improvments
2019-05-29 01:41:48 +03:00
gabime
fc53e3339f
CMakeLists.txt minor improvments
2019-05-29 01:33:20 +03:00
gabime
30bd80bd85
CMake improvements
2019-05-29 00:05:24 +03:00
David Zemon
dd2f293f33
Clean up CMake a bit more
2019-05-17 23:33:44 -05:00
David Zemon
6fe899af10
Set Threads::Threads dependency on spdlog libs - don't make user do it
2019-05-17 23:28:53 -05:00
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.
2019-05-17 23:27:44 -05:00
David Zemon
8dd85285e7
Allow user to choose between static or shared library
2019-05-17 23:26:06 -05:00
gabime
872ea6bf09
Deleted redundant Make files and solutions
2019-05-13 01:13:58 +03:00
gabime
ce637440bb
wip static-lib
2019-05-13 00:09:00 +03:00
gabime
26a064ed2d
wip static-lib
2019-05-12 23:36:48 +03:00
gabime
6bcb422c80
clang format and SPLDOG_HEADER_ONLY macro
2019-05-12 00:22:39 +03:00
gabime
2de924a187
clang-format
2019-04-27 02:34:50 +03:00
gabime
ff89f1476d
Restored error_handler as std::function
2019-04-26 18:14:59 +03:00
gabime
baefe0b3f6
wip
2019-04-26 15:11:01 +03:00
gabime
17f9cdd401
static lib wip
2019-04-05 23:05:46 +03:00
gabime
6b0bf33f8e
clang-format
2019-03-29 14:46:31 +03:00
gabime
b084b8b1d8
Cleaned systemd test
2019-03-22 14:16:16 +02:00
gabime
3ca19a8580
fix link to systemd in tests
2019-03-22 14:01:34 +02:00
Alexander Zvyagin
af80db8c22
Add systemd sink.
2019-03-14 16:20:58 +01:00
Philip Miller
e41b92c55a
fix inadvertent rename to original test function
2019-01-24 00:13:14 -05:00
Philip Miller
3925f8fa16
streamline constructor logic
...
and improve test for rotate_on_open=true
2019-01-24 00:06:15 -05:00
Philip Miller
4fe98bf6e6
Merge remote-tracking branch 'origin/v1.x' into pwm1234/rotate_on_open
2019-01-11 10:04:42 -05:00
Ben Ridder
fb702f989f
Fix typo in file_helper.h
...
* "extenstion" -> "extension"
2019-01-08 10:09:11 -08:00
gabime
112a7ada74
Fixd copy ellision warning in tests
2019-01-08 17:33:31 +02:00
gabime
fcb661d0e9
Fixed tests
2018-12-02 19:04:44 +02:00
gabime
d8eb0558e9
Fix test for mingw
2018-12-02 17:13:50 +02:00
gabime
0ce670e45a
Store level names as string_views
2018-11-25 00:36:14 +02:00
gabime
2998815166
Added missing test file
2018-11-22 21:35:11 +02:00
gabime
a31719b546
clang-format
2018-11-22 18:49:14 +02:00
gabime
f97cb00737
Updated macros tests
2018-11-22 18:48:32 +02:00
gabime
3fa76b2d8f
Renamed test filename
2018-11-22 12:31:16 +02:00
gabime
52e2722412
Renamed test filenames
2018-11-20 12:14:21 +02:00
gabime
3bfcb0468e
clang-format
2018-11-16 12:56:57 +02:00
gabime
b2735eb30c
Fixed fmt_helper tests
2018-11-16 12:56:36 +02:00
gabime
4a34cd0662
Optimized nano seconds formatting
2018-11-12 16:44:34 +02:00
gabime
7ce8ae72e8
Added test of pattern_formatter::clone()
2018-11-12 16:04:35 +02:00
gabime
cc7e122915
Added test of pattern_formatter::clone()
2018-11-12 16:04:09 +02:00
gabime
da84893921
Added test of pattern_formatter::clone()
2018-11-12 16:00:32 +02:00
gabime
1d5b6d7ae6
Added test of pattern_formatter::clone()
2018-11-12 15:59:03 +02:00
gabime
0e77c3391b
New compile time API using SPDLOG_ACTIVE_LEVEL
2018-11-11 18:15:24 +02:00
gabime
617fcc92cf
clang-format
2018-11-11 01:48:50 +02:00
gabime
18f0e4ba1a
Added some pattern-formatter padding tests
2018-11-11 01:43:40 +02:00
gabime
a6fbb3ef4c
Minor fix to test
2018-11-11 01:25:17 +02:00
Pablo Arias
fbc58ebef8
* using API call instead of macro for toggling automatic registration
...
* added unit test for disabling automatic registration
2018-11-10 14:34:04 +01:00
gabime
1b04c222cf
Fixed issue #888
2018-10-30 00:54:22 +02:00
gabime
cadb3d7da2
Fixed test
2018-10-22 00:14:07 +03:00
gabime
6355e9895d
Major change to log_msg - contain only string_view instead of buffer
2018-10-19 02:15:50 +03:00
Jerome Meyer
cb71fea0f6
Use fmt::string_view when logging a C string to avoid unnecessary copy
2018-10-18 11:04:20 -04:00
gabime
f2f9f324ec
Updated default API impl and tests
2018-10-13 19:23:11 +03:00
gabime
b368d18b0f
Added default logger API
2018-10-12 03:04:55 +03:00
gabime
3eadda9466
code formating
2018-10-05 15:21:05 +03:00
gabime
dea6a7c217
Tests: Fixed some clang-tidy warnings
2018-10-05 15:20:14 +03:00
gabime
36112371c0
Reverted const qualifier to log_msg& args, fixed issue #849 , and added counter tests
2018-10-05 14:23:37 +03:00
gabime
b7a6659451
code formatting
2018-10-04 02:10:46 +03:00
gabime
dace099348
Added fmt_helper tests
2018-09-28 01:30:29 +03:00
gabime
5d34d21f40
Fixed issue #842 in tests
2018-09-26 14:45:57 +03:00
gabime
808bc1f4ed
clang format
2018-09-25 01:11:36 +03:00
gabime
41d879e292
Added support for binary logging using to_hex(..)
2018-09-25 01:03:57 +03:00
Philip Miller
22f85deb2c
Merge remote-tracking branch 'origin/v1.x' into pwm1234/rotate_on_open
2018-09-06 11:40:46 -04:00
Philip Miller
52a01b2cf2
add argument to rotating file sink for rotate_on_open
...
when true, the log file will be rotated when it is opened so the newly constructed file will start off being empty
2018-09-06 02:47:48 -04:00
gabime
f4bbe8b2b3
Fixed some extra warnings from clang
2018-08-31 14:17:11 +03:00
gabime
6c5bbca0c1
Added clone tests
2018-08-25 18:10:42 +03:00
gabime
5d7845c138
Added "clone()" support to loggers
2018-08-25 17:55:31 +03:00
Gabi Melman
23db7a213d
Merge pull request #801 from yhchen/v1.x
...
remove invalid files from project
2018-08-19 13:02:35 +03:00
yhchen
3151081ff3
remove invalid files from project
2018-08-19 17:21:15 +08:00
gabime
8418131ae3
Fixed mpmc_q test for osx in travis
2018-08-17 17:30:33 +03:00
gabime
9ad9cfb898
Fixed mpmc_q test for osx in travis
2018-08-17 17:17:16 +03:00
gabime
a58d7594cb
Fixed issue #798 and added -Wconversion compiler flag to build
2018-08-17 00:32:13 +03:00
Daniel Chabrowski
b51c8cfd0f
Fix registry test
2018-08-16 17:53:55 +02:00
gabime
137f801ec7
Merge branch 'v1.x' of https://github.com/gabime/spdlog into v1.x
2018-08-15 19:02:07 +03:00
gabime
3d58f8d471
code formatting
2018-08-15 19:01:54 +03:00
Daniel Chabrowski
fb37585bc1
Little cmake and tests refactor
...
Change from spdlog_ex to const spdlog_ex& got rid of the GCC8 warning.
2018-08-14 21:33:47 +02:00
gabime
4a871b9792
Added some mpmc_q tests
2018-08-14 17:59:14 +03:00
gabime
057bf1b92d
Added some mpmc_q tests
2018-08-14 17:57:55 +03:00
Luiz Siqueira
c543985cf4
use size_t instead of int for overrun counter
2018-08-14 09:21:52 -03:00
Luiz Siqueira
863f704f47
increment counter every time we overrid a message in async mode.
2018-08-14 08:51:20 -03:00
gabime
530e209f66
Fixed async tests to pass TASN checks
2018-08-14 00:58:50 +03:00
gabime
aefde13858
formatting
2018-08-13 12:27:25 +03:00
gabime
ba337d1393
Fixed warning in tests
2018-08-13 11:16:50 +03:00
gabime
05d6960ebc
code formatting and clang tidy warnings fixes
2018-08-13 10:30:02 +03:00
Daniel Chabrowski
368b3699d0
Run ASAN/TSAN jobs with clang
...
Bring back removed tests/Makefile
2018-08-12 18:42:54 +02:00
Daniel Chabrowski
7e32ccbd8f
Modify travis-ci, fix issues
...
Added:
* Release/Debug job for gcc 7 and clang 3.5
* Debug asan gcc 7 job
* Debug tsan gcc 7 job
* Disabled extensions
* Added a spdlog::spdlog alias for tests
Removed:
* Valgrind workaround, the current version is 3.10.1
* install_libcxx
* Makefiles
Fixed:
* examples build
* multisink build
Workarounds:
* gcc7 with tsan and asan needs gold linker, otherwise build
fails becase of unrecognized option '--push-state'
2018-08-11 02:24:45 +02:00
Gabi Melman
8179b26388
Update file_log.cpp
2018-08-07 03:29:45 +03:00
gabime
7d38e2b01e
Removed junk folder
2018-07-25 18:48:45 +03:00
gabime
53cd47e19f
Remove un needed declaration from thread_pool
2018-07-25 16:50:14 +03:00
gabime
cb9c984aa7
registery and periodic flusher fixes.
2018-07-24 22:59:34 +03:00
gabime
33329c80a9
code formatting
2018-07-23 00:13:52 +03:00
gabime
fe73255452
Fixed issue #759
2018-07-23 00:13:24 +03:00
gabime
693103af9c
support set_formatter in spdlog.h
2018-07-22 21:52:46 +03:00
gabime
9e4925eff0
clang format
2018-07-21 23:48:07 +03:00
gabime
a96b4d7529
Added periodic flusher support, and fixed some registry issues
2018-07-21 23:30:26 +03:00
gabime
683dc0b216
Added async test to tests
2018-07-21 00:35:22 +03:00
gabime
989a10e48b
Added async test to tests
2018-07-21 00:33:27 +03:00
gabime
2dfea6bee3
Fixed tests under windows
2018-07-21 00:13:37 +03:00
gabime
c2a49080aa
Refactored sink interface and base_sink
2018-07-14 16:21:53 +03:00
gabime
7d40244a89
Fixed issue #726 and changed default filename calculator to dateonly
2018-07-13 01:44:29 +03:00
gabime
7ed8e1b59d
renamed async block policy
2018-07-08 00:53:50 +03:00
gabime
39c6eb752a
Code formatting
2018-07-07 13:22:43 +03:00
gabime
cd4dcbab36
Renamed simple_file_sink -> basic_file_sink
2018-07-07 12:12:45 +03:00
gabime
95de24e4f6
fixed tests and renamed to_short_str
2018-07-04 09:59:26 +03:00
gabime
94a7152afc
async queue - overrun oldsest policy option
2018-07-04 01:24:52 +03:00
gabime
0c19bdd772
pattern per sink and pattern caching
2018-06-24 01:32:39 +03:00
gabime
81fa788bca
Updated tests
2018-06-12 22:43:49 +03:00
gabime
cdbf2e361b
Upgrade to fmt 5.x
2018-06-12 18:48:22 +03:00
gabime
a21594bec7
move underscores to the end of private members
2018-06-10 22:59:17 +03:00