Commit Graph

371 Commits (fe97a03033c8731ded971ca0a6c86cebd2b047b6)

Author SHA1 Message Date
gabime 808bc1f4ed clang format 7 years ago
gabime 41d879e292 Added support for binary logging using to_hex(..) 7 years ago
Philip Miller 22f85deb2c Merge remote-tracking branch 'origin/v1.x' into pwm1234/rotate_on_open 7 years ago
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
7 years ago
gabime f4bbe8b2b3 Fixed some extra warnings from clang 7 years ago
gabime 6c5bbca0c1 Added clone tests 7 years ago
gabime 5d7845c138 Added "clone()" support to loggers 7 years ago
Gabi Melman 23db7a213d
Merge pull request #801 from yhchen/v1.x
remove invalid files from project
7 years ago
yhchen 3151081ff3 remove invalid files from project 7 years ago
gabime 8418131ae3 Fixed mpmc_q test for osx in travis 7 years ago
gabime 9ad9cfb898 Fixed mpmc_q test for osx in travis 7 years ago
gabime a58d7594cb Fixed issue #798 and added -Wconversion compiler flag to build 7 years ago
Daniel Chabrowski b51c8cfd0f Fix registry test 7 years ago
gabime 137f801ec7 Merge branch 'v1.x' of https://github.com/gabime/spdlog into v1.x 7 years ago
gabime 3d58f8d471 code formatting 7 years ago
Daniel Chabrowski fb37585bc1 Little cmake and tests refactor
Change from spdlog_ex to const spdlog_ex& got rid of the GCC8 warning.
7 years ago
gabime 4a871b9792 Added some mpmc_q tests 7 years ago
gabime 057bf1b92d Added some mpmc_q tests 7 years ago
Luiz Siqueira c543985cf4 use size_t instead of int for overrun counter 7 years ago
Luiz Siqueira 863f704f47 increment counter every time we overrid a message in async mode. 7 years ago
gabime 530e209f66 Fixed async tests to pass TASN checks 7 years ago
gabime aefde13858 formatting 7 years ago
gabime ba337d1393 Fixed warning in tests 7 years ago
gabime 05d6960ebc code formatting and clang tidy warnings fixes 7 years ago
Daniel Chabrowski 368b3699d0 Run ASAN/TSAN jobs with clang
Bring back removed tests/Makefile
7 years ago
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'
7 years ago
Gabi Melman 8179b26388
Update file_log.cpp 7 years ago
gabime 7d38e2b01e Removed junk folder 7 years ago
gabime 53cd47e19f Remove un needed declaration from thread_pool 7 years ago
gabime cb9c984aa7 registery and periodic flusher fixes. 7 years ago
gabime 33329c80a9 code formatting 7 years ago
gabime fe73255452 Fixed issue #759 7 years ago
gabime 693103af9c support set_formatter in spdlog.h 7 years ago
gabime 9e4925eff0 clang format 7 years ago
gabime a96b4d7529 Added periodic flusher support, and fixed some registry issues 7 years ago
gabime 683dc0b216 Added async test to tests 7 years ago
gabime 989a10e48b Added async test to tests 7 years ago
gabime 2dfea6bee3 Fixed tests under windows 7 years ago
gabime c2a49080aa Refactored sink interface and base_sink 7 years ago
gabime 7d40244a89 Fixed issue #726 and changed default filename calculator to dateonly 7 years ago
gabime 7ed8e1b59d renamed async block policy 7 years ago
gabime 39c6eb752a Code formatting 7 years ago
gabime cd4dcbab36 Renamed simple_file_sink -> basic_file_sink 7 years ago
gabime 95de24e4f6 fixed tests and renamed to_short_str 7 years ago
gabime 94a7152afc async queue - overrun oldsest policy option 7 years ago
gabime 0c19bdd772 pattern per sink and pattern caching 7 years ago
gabime 81fa788bca Updated tests 7 years ago
gabime cdbf2e361b Upgrade to fmt 5.x 7 years ago
gabime a21594bec7 move underscores to the end of private members 7 years ago
gabime 4b9949de7b format 7 years ago
gabime 52d1c08896 cleaned tests 7 years ago
gabime 7815d39807 removed wait_empty() from tp and q 7 years ago
gabime ef5c4f027c added tp getter to async api 7 years ago
gabime 8338b45b2b added tp->wait_empty() 7 years ago
gabime 0d0a841e8d format 7 years ago
gabime 31ff43ef81 more async tests 7 years ago
gabime 0d7a1d1ef9 format 7 years ago
gabime 8901cbffe0 added catch macro and fixed some tests 7 years ago
gabime b9d7c45e40 Use blocking queue 7 years ago
gabime cf63bcb808 catch exceptions during flush and cal handler 7 years ago
gabime 3c7103d90d Format 7 years ago
gabime 780dab6977 Fixed tests 7 years ago
gabime c962c88342 Fixed linux port of v1.x 7 years ago
gabime c80cc3306f Fixed tests 7 years ago
gabime 6f4cd8d397 thread_pool and refactoring async 7 years ago
gabime 1dea46e1ab code formatting 7 years ago
gabime 644c81b9fb Added color ranges to formatter tests 7 years ago
gabime 4445f6f869 formatting 8 years ago
gabime 5afb5dc782 Changed clang formatting for templates 8 years ago
gabime a2653d409f clang-format 8 years ago
gabime 7f1f7b6232 Changed function name to level::from_str 8 years ago
fegomes 48c8755d06 include test to convert functions and change suggested by @gabime 8 years ago
Gabi Melman e8a39c894f
Update test_pattern_formatter.cpp 8 years ago
Daniel Chabrowski 5355bd3a8f readability-named-parameter 8 years ago
Daniel Chabrowski 17caf77784 google-build-namespaces 8 years ago
Daniel Chabrowski 68f91822ed performance-unnecessary-value-param 8 years ago
gabime abc0d43995 astyle 8 years ago
gabime d650fa2456 Fixed tests for older gcc compilers 8 years ago
gabime a8b5bb894e fixed cmake for tests 8 years ago
gabime 3620b31ef2 added pattern formatter tests 8 years ago
Gabi Melman bce33698be
Merge pull request #628 from emadwill/eol
Support for custom EOL per formatter -Thanks @emadwill
8 years ago
gabime 7eb41ccf0f Use -O3 flag in tests 8 years ago
Gabi Melman 851b49e147
Update CMakeLists.txt 8 years ago
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;
                     ^~~~~~
8 years ago
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.
8 years ago
Emad William Farag 55680db160 Support for custom EOL per formatter 8 years ago
yisonPylkita 38ccd51399 Modern CMake in /tests 8 years ago
gabime 3d967dd716 added catch license in tests folder 8 years ago
gabime 4ca6991828 astyle 8 years ago
gabime 7663f58379 Fixed file_helper::split_by_extenstion tests for gcc 8 years ago
gabime 8e3f968ba4 Fixed file_helper::split_by_extenstion and added more tests for it 8 years ago
gabime f695e536dd Fixed file_helper::split_by_extenstion and added more tests for it 8 years ago
Force Charlie 42e5d98a48 fix split_by_extenstion parse error extenstion 8 years ago
Ľubomír Carik f93277d271 Solve compiler warning in tests
Signed-off-by: Ľubomír Carik <Lubomir.Carik@anritsu.com>
8 years ago
gabime 859b7f1d58 fixed test for visual c++ 8 years ago
gabime 49989e0678 fixed test for gcc 4.8 (no regex) 8 years ago
gabime 70274924b7 fixed test comment 8 years ago
gabime f5939f9e56 astyle 8 years ago
gabime 84e307521d Fixed test 8 years ago
gabime 3c4a2bf531 Handle file extensions in rotating and daily loggers 8 years ago
gabime 60ce47a814 Removed include_if.cpp from the tests .sln 8 years ago
gabime dcc7b347ca Removed all *_if functions (trace_if, debug_if, info_if,..) because they are redundant and confusing way to preform if 8 years ago
gabime 93be7713e0 astyle 8 years ago
gabime 87a44555b6 fixed macro tests 8 years ago
gabime 21ed31844c fixed bug in SPDLOG_TRACE_IF macro and added some related tests 8 years ago
fogo ee525f9bef allow printf style logging
* tests updated for printf style
* tests makefile support printf style
8 years ago
Asit Kumar Dhal e35c7fd065 Issue-488: warning for missing enumeration value 8 years ago
Alexei Pastuchov 8fd16fc45e code formatting (astyle and dos2unix)
it aims to solve the issue #467
8 years ago
Asit Kumar Dhal de0154c525 Test Case for conditional logging 8 years ago
Alexander Zilberkant 6547675e43 Revert "Merge pull request #441 from alzix/count_discarded"
This reverts commit 038733345a, reversing
changes made to 862d2f6f35.
8 years ago
Alexander Zilberkant 0f25b25b20 add async_logger tests
cover discarded messages use-case
8 years ago
gabime 0c276beaaf astyle 9 years ago
gabime 5a8cecdfb6 fix unused warning message 9 years ago
gabime 397d4866b3 Fixed issue #396 and added some tests to catch it 9 years ago
Ľubomír Carik fd8df5b820 Don't hardcode '.txt.' log file name suffix (resolve #333)
Signed-off-by: Ľubomír Carik <Lubomir.Carik@gmail.com>
9 years ago
gabime f14d1c002b astyle 9 years ago
gabime e97621d61d Removed force_flush arg from everywhere. Use flush_on(level) instead 9 years ago
gabime 3afabcd17e astyle 9 years ago
gabime d2a367fa7c Fixed tests after remove of force_flush arg 9 years ago
gabime 332b7c0d7f astyle 9 years ago
gabime 4efbd950d6 atyle 9 years ago
gabime d8f01c3a72 added apply_al()l test to tests 9 years ago
gabime e7debaacd7 astyle 9 years ago
gabime 39cdd08a54 no exceptions while logging 9 years ago
gabime 730f0e02a6 better support for file sizes in 32/64 bits 9 years ago
gabime 0ae66b5b28 support for external fmtlib 9 years ago
gabime 01601cef85 fixed tests warnings 9 years ago
gabime 8d95485f45 update testss.sln to vs 2015 9 years ago
gabime 34ef00c8bc updated tests to vs 2015 and fix warning 9 years ago
gabime 40a9e4e18e fixed test log folder 9 years ago
gabime febdf7324f astyle 9 years ago
gabime 258531481d fixed tests 9 years ago
gabime 7885aa478c no streams 9 years ago
gabime 5650f10bab DEPRECATED: operator<< API 9 years ago
gabime 8d1570b84a fixed tests cmake thread flag 9 years ago
gabime 3a44818b2a fixed pr #228 to include pthread and removed header_dependecies test 9 years ago
Kevin M. Godby 24e7b64b89 Added header-dependency tests. 9 years ago
gabime 58699a2bd4 astyle 9 years ago
gabime 10d5292bbb better support for custom eol 9 years ago
Gabi Melman 6d5bce46f8 Revert "CMake script improvements" 9 years ago
Kevin M. Godby 2907001e22 Fixed Catch tests. 9 years ago
Kevin M. Godby 2666b6cbf1 Added header dependency tests. 9 years ago
eao197 ef9842c36d daily_file_sink with custom file name calculator 9 years ago
gabime 0d26359856 astyle 9 years ago
Anton Goryunov e0f08d6b29 - fixed includes in tests 10 years ago
gabime 974379c9be Added support for SPDLOG_NO_ATOMIC_LEVELS in tweakme.h 10 years ago
gabime d0120b48c5 tests 10 years ago
gabime 23200b08bb added .gitignore to tests/logs folder 10 years ago
gabime 495ecaeaee astyle 10 years ago
gabime a96092ac32 tests small update 10 years ago
gabime c00f4785dd Fixed tests solution for visual studio 10 years ago
Kevin M. Godby c0c5c016c3 Added -I copmiler flag to find spdlog headers for Travis CI and tests/Makefile. 10 years ago
gabime e226bfc35d tests updated to vs2015 10 years ago
gabime 3d420a3bcf tests refactoring 10 years ago
gabime 6feaa29c62 tests: added utils.cpp to avoid gcc warnings 10 years ago
Gabi Melman a3c23311b3 Update file_log.cpp 10 years ago
gabime a05ba78656 added file_helper tests 10 years ago
gabime a9fb96e088 1. Fixed file_helper::exists() bug under windows which returned false in some circumstances
2. Improved file_helper::exists() performance under linux to use stat sys call
3. Added unit tests
10 years ago
gabime 8c38b4ee9e MIT license 10 years ago
gabime 74b0268713 Minor example fix 10 years ago
gabime f8b728ea8a Fixed warnings conversion 'size_t' to 'int' on windows - issue #119 10 years ago
gabime 319a62d73f fixed tests makefile 10 years ago
gabime d0f145f009 fixed tests make file 10 years ago
gabime 83d47aa645 VS 2013 solution for unit tests 10 years ago
gabime 1fef4bbd62 added tests to travis 10 years ago
gabime d7b0b54c9c fixed tests 10 years ago
gabime dcdf2280c8 fixed tests 10 years ago
gabime 8387d779b4 fixed tests 10 years ago
gabime c701420cf6 fixed tests 10 years ago
gabime b5eaef81d4 fixed tests under gcc 10 years ago
gabime 2f81e54568 Added unit tests (catch based) 10 years ago