Commit Graph

312 Commits

Author SHA1 Message Date
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
gabime
4b9949de7b format 2018-06-01 17:52:05 +03:00
gabime
52d1c08896 cleaned tests 2018-06-01 17:30:38 +03:00
gabime
7815d39807 removed wait_empty() from tp and q 2018-06-01 17:25:23 +03:00
gabime
ef5c4f027c added tp getter to async api 2018-05-27 03:14:55 +03:00
gabime
8338b45b2b added tp->wait_empty() 2018-05-27 02:53:16 +03:00
gabime
0d0a841e8d format 2018-05-27 02:21:49 +03:00
gabime
31ff43ef81 more async tests 2018-05-27 02:21:31 +03:00
gabime
0d7a1d1ef9 format 2018-05-26 18:48:39 +03:00
gabime
8901cbffe0 added catch macro and fixed some tests 2018-05-24 00:18:55 +03:00
gabime
b9d7c45e40 Use blocking queue 2018-05-22 21:59:27 +03:00
gabime
cf63bcb808 catch exceptions during flush and cal handler 2018-05-22 21:59:14 +03:00
gabime
3c7103d90d Format 2018-04-29 01:36:45 +03:00
gabime
780dab6977 Fixed tests 2018-04-29 01:34:36 +03:00
gabime
c962c88342 Fixed linux port of v1.x 2018-04-20 13:20:19 +03:00
gabime
c80cc3306f Fixed tests 2018-04-20 03:04:53 +03:00
gabime
6f4cd8d397 thread_pool and refactoring async 2018-04-14 03:34:57 +03:00
gabime
1dea46e1ab code formatting 2018-04-06 04:06:02 +03:00
gabime
644c81b9fb Added color ranges to formatter tests 2018-04-06 03:42:24 +03:00
gabime
4445f6f869 formatting 2018-03-16 17:35:56 +02:00
gabime
5afb5dc782 Changed clang formatting for templates 2018-03-16 17:13:50 +02:00
gabime
a2653d409f clang-format 2018-03-09 15:26:33 +02:00
gabime
7f1f7b6232 Changed function name to level::from_str 2018-03-09 15:24:37 +02:00
fegomes
48c8755d06 include test to convert functions and change suggested by @gabime 2018-03-08 19:08:24 -03:00
Gabi Melman
e8a39c894f
Update test_pattern_formatter.cpp 2018-03-06 10:31:36 +02:00
Daniel Chabrowski
5355bd3a8f readability-named-parameter 2018-02-25 12:39:37 +01:00
Daniel Chabrowski
17caf77784 google-build-namespaces 2018-02-25 12:12:34 +01:00
Daniel Chabrowski
68f91822ed performance-unnecessary-value-param 2018-02-25 00:54:14 +01:00
gabime
abc0d43995 astyle 2018-02-23 18:33:03 +02:00
gabime
d650fa2456 Fixed tests for older gcc compilers 2018-02-23 18:25:39 +02:00
gabime
a8b5bb894e fixed cmake for tests 2018-02-23 16:49:26 +02:00
gabime
3620b31ef2 added pattern formatter tests 2018-02-23 16:40:45 +02:00
Gabi Melman
bce33698be
Merge pull request #628 from emadwill/eol
Support for custom EOL per formatter -Thanks @emadwill
2018-02-23 15:11:10 +02:00
gabime
7eb41ccf0f Use -O3 flag in tests 2018-02-23 14:29:14 +02:00
Gabi Melman
851b49e147
Update CMakeLists.txt 2018-02-22 13:37:50 +02:00
grzadr
8e861728a0
Fix indentation in line 2916
Compiling with -Wmisleading-indentation triggers warning:
/data/Git/spdlog/tests/catch.hpp: In member function ‘bool Catch::TestSpec::Filter::matches(const Catch::TestCaseInfo&) const’:
/data/Git/spdlog/tests/catch.hpp:2913:17: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
                 for( std::vector<Ptr<Pattern> >::const_iterator it = m_patterns.begin(), itEnd = m_patterns.end(); it != itEnd; ++it )
                 ^~~
/data/Git/spdlog/tests/catch.hpp:2916:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
                     return true;
                     ^~~~~~
2018-02-22 09:46:54 +01:00
Daniel Chabrowski
646a140ed4 Specify CXX language explicitly in CMake
Marking project as CXX will disable detecting C compiler and other checks.
Removed 'INCLUDES DESTINATION' as it made the include path appear doubled.
2018-02-11 21:13:33 +01:00
Emad William Farag
55680db160 Support for custom EOL per formatter 2018-02-05 21:51:01 -05:00
yisonPylkita
38ccd51399 Modern CMake in /tests 2018-01-28 00:49:03 +01:00
gabime
3d967dd716 added catch license in tests folder 2017-12-24 19:37:54 +02:00
gabime
4ca6991828 astyle 2017-12-22 18:55:19 +02:00
gabime
7663f58379 Fixed file_helper::split_by_extenstion tests for gcc 2017-12-22 18:48:02 +02:00
gabime
8e3f968ba4 Fixed file_helper::split_by_extenstion and added more tests for it 2017-12-22 18:41:03 +02:00
gabime
f695e536dd Fixed file_helper::split_by_extenstion and added more tests for it 2017-12-22 18:37:51 +02:00
Force Charlie
42e5d98a48 fix split_by_extenstion parse error extenstion 2017-12-22 17:52:50 +08:00
Ľubomír Carik
f93277d271 Solve compiler warning in tests
Signed-off-by: Ľubomír Carik <Lubomir.Carik@anritsu.com>
2017-12-20 04:34:08 +01:00
gabime
859b7f1d58 fixed test for visual c++ 2017-12-01 04:42:23 +02:00
gabime
49989e0678 fixed test for gcc 4.8 (no regex) 2017-12-01 04:35:23 +02:00
gabime
70274924b7 fixed test comment 2017-12-01 03:59:35 +02:00
gabime
f5939f9e56 astyle 2017-12-01 03:46:19 +02:00
gabime
84e307521d Fixed test 2017-12-01 03:45:29 +02:00
gabime
3c4a2bf531 Handle file extensions in rotating and daily loggers 2017-12-01 03:40:49 +02:00
gabime
60ce47a814 Removed include_if.cpp from the tests .sln 2017-12-01 01:28:12 +02:00
gabime
dcc7b347ca Removed all *_if functions (trace_if, debug_if, info_if,..) because they are redundant and confusing way to preform if 2017-11-25 15:19:41 +02:00
gabime
93be7713e0 astyle 2017-11-06 12:39:04 +02:00
gabime
87a44555b6 fixed macro tests 2017-10-13 02:15:49 +03:00
gabime
21ed31844c fixed bug in SPDLOG_TRACE_IF macro and added some related tests 2017-10-13 02:04:31 +03:00
fogo
ee525f9bef allow printf style logging
* tests updated for printf style
* tests makefile support printf style
2017-10-05 10:54:06 -03:00
Asit Kumar Dhal
e35c7fd065 Issue-488: warning for missing enumeration value 2017-08-05 00:30:03 +02:00
Alexei Pastuchov
8fd16fc45e code formatting (astyle and dos2unix)
it aims to solve the issue #467
2017-06-29 09:51:44 +02:00
Asit Kumar Dhal
de0154c525 Test Case for conditional logging 2017-06-17 18:50:21 +02:00