Commit Graph

434 Commits (545c301877eeea1099bd437f4177a555a948dbfb)

Author SHA1 Message Date
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
gabime 112a7ada74 Fixd copy ellision warning in tests 7 years ago
gabime fcb661d0e9 Fixed tests 7 years ago
gabime d8eb0558e9 Fix test for mingw 7 years ago
gabime 0ce670e45a Store level names as string_views 7 years ago
gabime 2998815166 Added missing test file 7 years ago
gabime a31719b546 clang-format 7 years ago
gabime f97cb00737 Updated macros tests 7 years ago
gabime 3fa76b2d8f Renamed test filename 7 years ago
gabime 52e2722412 Renamed test filenames 7 years ago
gabime 3bfcb0468e clang-format 7 years ago
gabime b2735eb30c Fixed fmt_helper tests 7 years ago
gabime 4a34cd0662 Optimized nano seconds formatting 7 years ago
gabime 7ce8ae72e8 Added test of pattern_formatter::clone() 7 years ago
gabime cc7e122915 Added test of pattern_formatter::clone() 7 years ago
gabime da84893921 Added test of pattern_formatter::clone() 7 years ago
gabime 1d5b6d7ae6 Added test of pattern_formatter::clone() 7 years ago
gabime 0e77c3391b New compile time API using SPDLOG_ACTIVE_LEVEL 7 years ago
gabime 617fcc92cf clang-format 7 years ago
gabime 18f0e4ba1a Added some pattern-formatter padding tests 7 years ago
gabime a6fbb3ef4c Minor fix to test 7 years ago
Pablo Arias fbc58ebef8 * using API call instead of macro for toggling automatic registration
* added unit test for disabling automatic registration
7 years ago
gabime 1b04c222cf Fixed issue #888 7 years ago
gabime cadb3d7da2 Fixed test 7 years ago
gabime 6355e9895d Major change to log_msg - contain only string_view instead of buffer 7 years ago
Jerome Meyer cb71fea0f6 Use fmt::string_view when logging a C string to avoid unnecessary copy 7 years ago
gabime f2f9f324ec Updated default API impl and tests 7 years ago
gabime b368d18b0f Added default logger API 7 years ago
gabime 3eadda9466 code formating 7 years ago
gabime dea6a7c217 Tests: Fixed some clang-tidy warnings 7 years ago
gabime 36112371c0 Reverted const qualifier to log_msg& args, fixed issue #849, and added counter tests 7 years ago
gabime b7a6659451 code formatting 7 years ago
gabime dace099348 Added fmt_helper tests 7 years ago
gabime 5d34d21f40 Fixed issue #842 in tests 7 years ago
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