Commit Graph

275 Commits (592fb4342cdeac91257bc13c2137995ac795594b)

Author SHA1 Message Date
gabime 6bcb422c80 clang format and SPLDOG_HEADER_ONLY macro 6 years ago
gabime 540f865355 Normalized copyright message 6 years ago
gabime 46ef71e3ec Normalized copyright message 6 years ago
Philip Salzmann 5e856c6b4d Add mode enum to control output of color sinks
This adds a new "color_mode" enum that can be used to control the color
code output behavior of sinks with color support. It can be one of three
values: always, automatic and never.
6 years ago
gabime 1ac6c9f9c2 clang-format static-lib 6 years ago
gabime 69fcaf14e5 wip static-lib 6 years ago
gabime 2de924a187 clang-format 6 years ago
gabime c1c2ff2d07 wip 6 years ago
gabime 215b6aea95 file_helper.cpp and filename_t fix 6 years ago
gabime 96b7214ae2 fix common.h 6 years ago
gabime 97f9cc4bc0 some cleanup 6 years ago
gabime 7ab6fd9db6 source_loc change line to int 6 years ago
gabime d12a858897 some cleanup 6 years ago
gabime 17f9cdd401 static lib wip 6 years ago
gabime e2e3df9013 static lib wip 6 years ago
gabime 6b0bf33f8e clang-format 7 years ago
Mattias Fornander 0ccbdcdd1f Add tweak support for user short level names 7 years ago
charles-david 20a0f82701 Renamed input parameters to "params_in". 7 years ago
charles-david 0f128fd561 Warning for shadowed parameter corrected in common.h
However, not in bundled fmt. Corrects compiling with basic logger with header only and -Werror.
7 years ago
gabime 57c3023881 Moved SPDLOG_FUNCTION define to common.h 7 years ago
gabime 6b4fea39ab clang-format 7 years ago
possiblyhuman 2124b7bf64 Allow filename/line number at all levels. Add function name %! support. 7 years ago
gabime 0203a0fdaf Fixed issue #948 7 years ago
gabime 3da189f7c0 SPDLOG_TRACE to check log level before calling the logger 7 years ago
gabime ec3f2b76b0 Strip path from __FILE__ in SPDLOG_TRACE macros 7 years ago
gabime f0c962d274 source_loc ctor: brace init members 7 years ago
David P. Sicilia a6152ebadd Make an implicit cast from int --> uint32_t explicit.
Perhaps this casting should not happen to begin with, but better
to make it explicit where it is happening for readability.  This
fixes a compiler warning.
7 years ago
gabime 92921f767e clang-format 7 years ago
gabime 0ce670e45a Store level names as string_views 7 years ago
gabime a16ff07a06 Show source location if present in default formatter 7 years ago
gabime dc13700094 Fixed source location and make SPDLOG_TRACE: that only one that inject source location info. 7 years ago
gabime 9484c4dc05 clang-format 7 years ago
gabime 521b0733d4 Support for source location in async loggers 7 years ago
gabime a463989278 keep clang-tidy happy 7 years ago
gabime a31719b546 clang-format 7 years ago
gabime f2305fe5bf Support for source file/line logging 7 years ago
gabime b522413085 Replaced SPDLOG_DISABLE_TID_CACHING with SPDLOG_NO_TLS 7 years ago
gabime 0e77c3391b New compile time API using SPDLOG_ACTIVE_LEVEL 7 years ago
gabime 6fedffe6d6 Moved the SPDLOG_CATCH_AND_HANDLE to logger_impl.h 7 years ago
gabime 392d126372 Renamed string_view_type -> string_view_t 7 years ago
gabime 894438d5fb Better support for string_view 7 years ago
gabime f4c5c5a367 Replaced noexcept with SPDLOG_NOEXCEPT 7 years ago
gabime 2a7b995723 Added noexcept some function in common.h 7 years ago
gabime 7af3f014af Fixed clang-tidy warning 7 years ago
gabime a8c4aef6bd fix typo 7 years ago
gabime 669a66f18a format 7 years ago
gabime e8dae26176 Moved spdlog::make_unique to spdlog::details::make_unique and prevent T to be array 7 years ago
gabime 65defd3806 Replaced SPDLOG_FINAL macro with final 7 years ago
gabime ebce97947d use make_unique 7 years ago
gabime b962fbb15c Fixed issue #797 7 years ago
gabime 05d6960ebc code formatting and clang tidy warnings fixes 7 years ago
gabime 74c10df169 Changed SPDLOG_VERSION to be numeric 7 years ago
gabime 9e4925eff0 clang format 7 years ago
gabime 9cbdd5ffd4 Added async_nonblocking factory 7 years ago
gabime 3aaefc48ec Minor cleaning of common.h 7 years ago
gabime 0a3c81826f Changed some functions to accept strings instead of ref to strings for better semantics 7 years ago
gabime 81f29a9a7a Fixed wchar support in messages 7 years ago
Gabi Melman 99cc35384b
Update common.h 7 years ago
gabime 887326e715 minor code cleanup 7 years ago
gabime 7ed8e1b59d renamed async block policy 7 years ago
gabime 95de24e4f6 fixed tests and renamed to_short_str 7 years ago
gabime 1d9e2304be renamed level::to_str() to level::to_c_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
Gabi Melman 58e09dbd33
Update common.h 7 years ago
Gabi Melman e770673f11
Update common.h 7 years ago
gabime 6d5670fde7 format 7 years ago
gabime 5683c06d9a solve issue #724 7 years ago
gabime 65506136e2 solve issue #724 7 years ago
gabime cdbf2e361b Upgrade to fmt 5.x 7 years ago
gabime 378c7789ba Fixed issue #720 7 years ago
gabime a21594bec7 move underscores to the end of private members 7 years ago
gabime 7f6220d960 increase errno string buffer size 7 years ago
gabime 38b3ecb02e use fmt::safe_strerror 7 years ago
gabime 0d7a1d1ef9 format 7 years ago
gabime 8901cbffe0 added catch macro and fixed some tests 7 years ago
gabime caa26a2a47 Normalized spdlog include paths 7 years ago
gabime 56e4a201ec formatting 8 years ago
Gabi Melman 650daf7542
Update common.h
Updated spdlog version macro to 0.16.4-rc
8 years ago
gabime ad221b0990 Changed function name to level::from_str 8 years ago
gabime 461b5ef28a Fixed missing ; 8 years ago
gabime 7f1f7b6232 Changed function name to level::from_str 8 years ago
fegomes 46f9768599 change of scope the name_to_level variable 8 years ago
fegomes c21dd874d1 removed class to return size of array. 8 years ago
fegomes 48c8755d06 include test to convert functions and change suggested by @gabime 8 years ago
fegomes f9750dddee Merge branch 'master' into to_level 8 years ago
Daniel Chabrowski 0c94ce0039 deleted copy op and a little format 8 years ago
Daniel Chabrowski ad624432d8 google-explicit-constructor 8 years ago
Daniel Chabrowski fb6df0512f modernize-use-override 8 years ago
Daniel Chabrowski 7f4c1bb77c modernize-use-using 8 years ago
gabime 04d0dd5987 moved SPDLOG_VERSION macro to common.h 8 years ago
gabime 051048ebd7 Fixed issue #645 (include tweakme.h from common.h) 8 years ago
Fernando Gomes f4ffddc942
Merge branch 'master' into to_level 8 years ago
gabime 5ab033fba5 Fix issue #629 8 years ago
fegomes 8696ad8739 new function to convert level_enum from string 8 years ago
gabime adbc22096a enable final keyword by default. Can be disabled in tweakme.h for older compilers 8 years ago
gabime e7cf25a1c0 fixed issue #562 8 years ago
gabime 8ca1d84a32 Removed catch(..) from the codebase. Catch only std::exception 8 years ago
daylanKifky 27e7412640 modified path on quoted #includes
Paths pointing to the root of the library where replaced for ones relatives to each file.

For example, inside /include/spdlog/details/file_helper.h:

This will look for os.h in /include/spdlog/details/spdlog/details/ which doesn't exists.

replaced with:
8 years ago
Costin Manolache f4f3e3fb66
Use __ANDROID__
Based on review feedback.
8 years ago
Costin Manolache 23dd8d3559
Allow compilation on platforms with unwind (android) 8 years ago
manuel-schiller 039b34e83a rethrow unwind exception
On Linux with pthread library spdlog causes an SIGABORT and crashes
the application in case it catches a thread specific cancellation
exception in a critical execution phase while in a try/catch block
in spdlog/detail/logger_impl.h

The exception is caught by some general catch(...) clause where
it is NOT rethrown.

However rethrowing these kind of exception is mandatory, otherwise
an abort will be caused by the glibc.
8 years ago
Asit Kumar Dhal 3a40f0c34d fixed length and upper case log level tags 8 years ago
Gabi Melman 9470bdd3ec Update common.h 8 years ago
ThePhD d98d54896b use if statement instead of switch (changes of adding new time specifications outside of standard are probably unlikely anyhow)
pattern_time -> pattern_time_type
ptime variable name -> pattern_time variable name
make sure four spaces used, not tabs
8 years ago
ThePhD 5c5080d304 implement a flag (in this case, an enumeration) that allows control over the type; we make it an enum for possible expansions of time abstractions that might make it into the C++ standard in the future (see Howard Hinnant's date/timezone library) or might be usefully-available from the OS at some point in time 8 years ago
Tennn f8d509d010 Fixed issues 449
Please check it
8 years ago
Jean-Michaël Celerier 4da5fa256c add SPDLOG_FINAL information in tweakme.h 8 years ago
Jean-Michaël Celerier 53138c20fb Add an optional final qualifier to types
When building with GCC's -Wfinal-types, a lot of types of spdlog
are marked as being more optimizable if they were marked final.

This patch adds a possibility for the user of the library to `#define SPDLOG_FINAL final`
and enjoy potentially better performance : GCC is then able to replace virtual calls by true
function calls if it can ensure that there are no derived types).

By default SPDLOG_FINAL is defined to nothing to not break existing code that
may be inheriting of some of these types for some reason.
8 years ago
Gabi Melman 7481a8ecf7 Update common.h 9 years ago
Gabi Melman 904bed92c3 Added SPDLOG_VERSION macro to common.h 9 years ago
Gabi Melman 9eee823041 Fix issue #315 9 years ago
Gabi Melman 541dd88a97 Update common.h 9 years ago
Gabi Melman ca928bc1b0 Fix issue #295
vs 2013 not supports std::atomic_int
9 years ago
gabime b13735dc22 astyle 9 years ago
gabime 20cb73e9da disable syslog by default (enable by #define SPDLOG_ENABLE_SYSLOG ) 9 years ago
Nazım Can Bedir 097ba5a359 Add basic support for Solaris. 9 years ago
Nazım Can Bedir e277f9b05c Make syslog backend tweakable. 9 years ago
Nazım Can Bedir 2678c37b56 Move syslog support tests to one place. 9 years ago
gabime 39cdd08a54 no exceptions while logging 9 years ago
gabime 0ae66b5b28 support for external fmtlib 9 years ago
Gabi Melman f702dce601 Update common.h 9 years ago
gabime 8e0892fa31 astyle 9 years ago
gabime c5c6baad74 Added errno description to sdlog exception strings 9 years ago
gabime e5032c8db5 fixed SPDLOG_TRACE under gcc (isue #241) 9 years ago
gabime 30326dad37 removed level defines 9 years ago
gabime 7ddfb2b877 fixed macros and other stuff for the no-streams branch 9 years ago
gabime 5650f10bab DEPRECATED: operator<< API 9 years ago
gabime 80a432e646 cleaned common.h and moved some code around 9 years ago
gabime 10d5292bbb better support for custom eol 9 years ago
gabime cae43ffef5 fixed issue #199 (_MSC_VER update for vs 2015 to use noexcept instead of throw()) 9 years ago
gabime 0d26359856 astyle 9 years ago
gabime 083d6c0d2f rename atomic level type name 10 years ago
gabime 974379c9be Added support for SPDLOG_NO_ATOMIC_LEVELS in tweakme.h 10 years ago
gabime 19dae96985 wchar filenames support - minor improvements 10 years ago
unknown 113ebcfd97 Add the SPDLOG_USE_WCHAR tweak to enable support for Unicode names on Windows. Refs #111 10 years ago
gabime 495ecaeaee astyle 10 years ago
Kevin M. Godby 077c3095eb Added missing standard header includes. 10 years ago
gabime 8c38b4ee9e MIT license 10 years ago
gabime cadd181d8d Reverted pull #111 - wchar support under windows - it pollutes global namespace with new defines 10 years ago
Ilya Kulakov d905ad915f Use only SPDLOG_USE_WCHAR to control whether wchar_t is enabled. 10 years ago
Artem Martynovich 787aa46693 Disable usage of wchar_t in tests. 10 years ago
Artem Martynovich 0e5c4b9de4 Fix Unix build. Use S("...") instead of L"..." for better compatibility. 10 years ago
Artem Martynovich 2b59393bda Add wchar_t support for Windows. 10 years ago
gabime b715378ff5 Added tweakme.h - enable users to enable/disable features at compile time 11 years ago
gabime 8da33db62f Removed redundant "using log_thread_id=size_t" 11 years ago
gabime 4dd31bf031 fixed pedantic gcc errors 11 years ago
gabime 25afbd79b2 Added compile time option to turn off thread id (#define SPDLOG_NO_THREAD_ID in common.h) 11 years ago
gabime 0684b4f378 use size_t to better represent thread id across platforms 11 years ago
gabime 147ce4c80d #define SPDLOG_NOEXCEPT throw() under visual studio 11 years ago