Commit Graph

275 Commits (592fb4342cdeac91257bc13c2137995ac795594b)

Author SHA1 Message Date
gabime d75fd2c7f9 Fixed wchar support under msvc 4 years ago
gabime 68aed6a5eb Fixed building under c++17 4 years ago
Mikael Lund cd376a5c43 Allow compilation with nvc++ 4 years ago
steven lunt ee22eed23d add macros for overriding the individual level names 4 years ago
steven lunt ab72de5f7a Revert "added spdlog::level::set_string_view to enable alternate log level names without changing the build via SPDLOG_LEVEL_NAMES"
This reverts commit 2a16d1d230.
4 years ago
gabime e9635c7b2d rethrnow non std exceptions to fix #533 4 years ago
steven lunt 2a16d1d230 added spdlog::level::set_string_view to enable alternate log level names without changing the build via SPDLOG_LEVEL_NAMES 4 years ago
gabime 44e1f9f682 Added nonreturn sepcifier to fix #1748 5 years ago
Gabi Melman 609480ed78
Merge pull request #1798 from gv-me/constexpr-log-levels
add constexpr to SPDLOG_LEVEL_NAMES declaration
5 years ago
Gaurav Vaidya 53d223b45f add constexpr to SPDLOG_LEVEL_NAMES declaration
for #1791
5 years ago
Charles Milette 9e19012cb0
Remove filename_memory_buf_t from headers 5 years ago
Charles Milette fc594b551a
Prevent win_eventlog_sink from silently discarding errors when wide support is enabled 5 years ago
Charles Milette a453bccff0
Better support for / separators on Windows, improve wchar filename coverage 5 years ago
gabime 231ca50700 clang-format 5 years ago
gabime 9cd25dd216 Remove un needed hasher declaration 5 years ago
gabime 15066d1d37 clang-format 5 years ago
Gabi Melman 2170de8819
Update common.h 5 years ago
Gabi Melman 300ec667f6
Update common.h 5 years ago
Gabi Melman 348c4380d6
Fix #1535 5 years ago
Gabi Melman 3b87eb3d08 Moved throw to dedicated function throw_spdlog_ex 6 years ago
gabime d1819f5f76 clang-format 6 years ago
Martin Vejdarski 0ca2cb625e Add shared library support for Windows 6 years ago
Dávid Bodor 6e763d2776 only include windows.h when it's unavoidable 6 years ago
gabime 695912c7cf Optimize ansicolor_sink to use array instead of map to find color codes 6 years ago
gabime 4f66313440 Fix #1308 6 years ago
Cristian Morales Vega 7cdd65075c "#include" <spdlog/.*> instead of "spdlog/.*"
The meaning of using quotes to #include is implementation defined, so it
may or not may be what we want. At least POSIX
(https://pubs.opengroup.org/onlinepubs/9699919799/utilities/c99.html)
says: "headers whose names are enclosed in double-quotes ( "" ) shall be
searched for first in the directory of the file with the #include line",
so not what we want since "spdlog" ends up twice in the path.
6 years ago
gabime 188afe20f9 Fix issue #1249 6 years ago
Bak, Jin Hyeong f8e780b9dd Fix #1239, Remove basic_string_view_t 6 years ago
gabime 2fed68a73b Reverted some external template declarations 6 years ago
gabime 5496491aa4 Added extern template declarations 6 years ago
Gabi Melman 35835469d7
Update common.h 6 years ago
Gabi Melman 0d6992fcdd
Update common.h 6 years ago
gabime 1857a44c7c Fix #1215 6 years ago
gabime f5492aed12 Unified usage of fmt::memory_buffer across the codebase 6 years ago
gabime 0335e3fcc0 Print error and abort instead of throw if SPDLOG_NO_EXEPTIONS is defined 6 years ago
gabime b0a25f0183 wip - no-exceptions support 6 years ago
Charles Milette eb51f37c67
Fix ambiguous overload errors 6 years ago
gabime 39910f5137 Fixed execption include 6 years ago
gabime fd53472238 Cleaned common.h 6 years ago
Matthias Moulin be33f5eb89
Added wstring_view_t 6 years ago
Charles Milette 3bcd3cef2f
Fix deprecation warnings in filename_to_str 6 years ago
gabime 78c833a09f clang-format 6 years ago
gabime 99e519cf0f Simplify color sinks 6 years ago
gabime c09dee7717 Moved source filename shortening to pattern formatter instead of macro 6 years ago
gabime bcfa9241b8 Updated copyright headers 6 years ago
gabime eea9d6136f Moved default sync factory to seperate file to avoid cyclic includes 6 years ago
gabime 7a3a560c44 Merge v1.x 6 years ago
David Zemon 8dd85285e7 Allow user to choose between static or shared library 6 years ago
gabime 8b244ca988 Moved format.cpp into spdlog.cpp - this way only one src file is needed 6 years ago
gabime bb3dc87953 Fixed include order and example 6 years ago
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