Commit Graph

258 Commits

Author SHA1 Message Date
Gabi Melman
300ec667f6
Update common.h 2020-04-28 18:37:57 +03:00
Gabi Melman
348c4380d6
Fix #1535 2020-04-28 18:01:48 +03:00
Gabi Melman
3b87eb3d08 Moved throw to dedicated function throw_spdlog_ex 2020-03-21 23:25:12 +02:00
gabime
d1819f5f76 clang-format 2020-03-15 18:51:52 +02:00
Martin Vejdarski
0ca2cb625e Add shared library support for Windows 2020-03-10 03:14:36 +07:00
Dávid Bodor
6e763d2776 only include windows.h when it's unavoidable 2020-02-25 15:36:39 +01:00
gabime
695912c7cf Optimize ansicolor_sink to use array instead of map to find color codes 2020-02-15 12:06:01 +02:00
gabime
4f66313440 Fix #1308 2019-11-10 00:35:34 +02:00
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.
2019-11-06 19:15:29 +00:00
gabime
188afe20f9 Fix issue #1249 2019-09-28 11:20:26 +03:00
Bak, Jin Hyeong
f8e780b9dd Fix #1239, Remove basic_string_view_t 2019-09-23 14:48:09 +09:00
gabime
2fed68a73b Reverted some external template declarations 2019-09-20 01:52:05 +03:00
gabime
5496491aa4 Added extern template declarations 2019-09-20 00:18:36 +03:00
Gabi Melman
35835469d7
Update common.h 2019-09-17 12:52:59 +03:00
Gabi Melman
0d6992fcdd
Update common.h 2019-09-17 12:48:54 +03:00
gabime
1857a44c7c Fix #1215 2019-09-07 20:11:58 +03:00
gabime
f5492aed12 Unified usage of fmt::memory_buffer across the codebase 2019-08-28 18:46:09 +03:00
gabime
0335e3fcc0 Print error and abort instead of throw if SPDLOG_NO_EXEPTIONS is defined 2019-08-19 11:31:33 +03:00
gabime
b0a25f0183 wip - no-exceptions support 2019-08-18 19:46:28 +03:00
Charles Milette
eb51f37c67
Fix ambiguous overload errors 2019-07-24 13:52:03 -04:00
gabime
39910f5137 Fixed execption include 2019-07-16 15:50:42 +03:00
gabime
fd53472238 Cleaned common.h 2019-07-07 17:22:58 +03:00
Matthias Moulin
be33f5eb89
Added wstring_view_t 2019-07-06 18:59:45 +02:00
Charles Milette
3bcd3cef2f
Fix deprecation warnings in filename_to_str 2019-06-30 19:12:16 -04:00
gabime
78c833a09f clang-format 2019-06-18 17:05:27 +03:00
gabime
99e519cf0f Simplify color sinks 2019-06-18 12:32:51 +03:00
gabime
c09dee7717 Moved source filename shortening to pattern formatter instead of macro 2019-06-14 00:23:25 +03:00
gabime
bcfa9241b8 Updated copyright headers 2019-06-04 00:09:16 +03:00
gabime
eea9d6136f Moved default sync factory to seperate file to avoid cyclic includes 2019-06-03 23:56:18 +03:00
gabime
7a3a560c44 Merge v1.x 2019-05-24 12:33:14 +03:00
David Zemon
8dd85285e7 Allow user to choose between static or shared library 2019-05-17 23:26:06 -05:00
gabime
8b244ca988 Moved format.cpp into spdlog.cpp - this way only one src file is needed 2019-05-12 00:43:58 +03:00
gabime
bb3dc87953 Fixed include order and example 2019-05-12 00:32:57 +03:00
gabime
6bcb422c80 clang format and SPLDOG_HEADER_ONLY macro 2019-05-12 00:22:39 +03:00
gabime
540f865355 Normalized copyright message 2019-05-11 20:15:03 +03:00
gabime
46ef71e3ec Normalized copyright message 2019-05-11 20:06:17 +03:00
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.
2019-05-10 09:47:16 +02:00
gabime
1ac6c9f9c2 clang-format static-lib 2019-05-08 17:17:11 +03:00
gabime
69fcaf14e5 wip static-lib 2019-04-27 18:44:48 +03:00
gabime
2de924a187 clang-format 2019-04-27 02:34:50 +03:00
gabime
c1c2ff2d07 wip 2019-04-27 02:33:33 +03:00
gabime
215b6aea95 file_helper.cpp and filename_t fix 2019-04-06 13:45:33 +03:00
gabime
96b7214ae2 fix common.h 2019-04-06 13:13:47 +03:00
gabime
97f9cc4bc0 some cleanup 2019-04-06 01:44:03 +03:00
gabime
7ab6fd9db6 source_loc change line to int 2019-04-06 01:40:53 +03:00
gabime
d12a858897 some cleanup 2019-04-06 01:37:27 +03:00
gabime
17f9cdd401 static lib wip 2019-04-05 23:05:46 +03:00
gabime
e2e3df9013 static lib wip 2019-04-05 16:44:17 +03:00
gabime
6b0bf33f8e clang-format 2019-03-29 14:46:31 +03:00
Mattias Fornander
0ccbdcdd1f Add tweak support for user short level names 2019-02-18 14:33:41 -07:00
charles-david
20a0f82701 Renamed input parameters to "params_in". 2019-02-01 07:59:50 -05:00
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.
2019-01-31 22:47:02 -05:00
gabime
57c3023881 Moved SPDLOG_FUNCTION define to common.h 2019-01-10 19:18:31 +02:00
gabime
6b4fea39ab clang-format 2019-01-10 16:31:06 +02:00
possiblyhuman
2124b7bf64 Allow filename/line number at all levels. Add function name %! support. 2019-01-08 22:52:40 +00:00
gabime
0203a0fdaf Fixed issue #948 2019-01-08 17:35:34 +02:00
gabime
3da189f7c0 SPDLOG_TRACE to check log level before calling the logger 2018-12-06 13:27:00 +02:00
gabime
ec3f2b76b0 Strip path from __FILE__ in SPDLOG_TRACE macros 2018-12-04 12:28:21 +02:00
gabime
f0c962d274 source_loc ctor: brace init members 2018-11-29 12:55:14 +02:00
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.
2018-11-27 20:24:21 -05:00
gabime
92921f767e clang-format 2018-11-25 00:44:51 +02:00
gabime
0ce670e45a Store level names as string_views 2018-11-25 00:36:14 +02:00
gabime
a16ff07a06 Show source location if present in default formatter 2018-11-24 18:00:56 +02:00
gabime
dc13700094 Fixed source location and make SPDLOG_TRACE: that only one that inject source location info. 2018-11-24 17:08:13 +02:00
gabime
9484c4dc05 clang-format 2018-11-22 19:18:43 +02:00
gabime
521b0733d4 Support for source location in async loggers 2018-11-22 19:17:41 +02:00
gabime
a463989278 keep clang-tidy happy 2018-11-22 18:50:56 +02:00
gabime
a31719b546 clang-format 2018-11-22 18:49:14 +02:00
gabime
f2305fe5bf Support for source file/line logging 2018-11-22 18:47:50 +02:00
gabime
b522413085 Replaced SPDLOG_DISABLE_TID_CACHING with SPDLOG_NO_TLS 2018-11-16 10:07:31 +02:00
gabime
0e77c3391b New compile time API using SPDLOG_ACTIVE_LEVEL 2018-11-11 18:15:24 +02:00
gabime
6fedffe6d6 Moved the SPDLOG_CATCH_AND_HANDLE to logger_impl.h 2018-11-11 01:33:08 +02:00
gabime
392d126372 Renamed string_view_type -> string_view_t 2018-10-21 23:50:07 +03:00
gabime
894438d5fb Better support for string_view 2018-10-21 12:46:58 +03:00
gabime
f4c5c5a367 Replaced noexcept with SPDLOG_NOEXCEPT 2018-10-10 01:01:37 +03:00
gabime
2a7b995723 Added noexcept some function in common.h 2018-10-10 00:57:16 +03:00
gabime
7af3f014af Fixed clang-tidy warning 2018-09-27 00:59:28 +03:00
gabime
a8c4aef6bd fix typo 2018-09-26 23:50:47 +03:00
gabime
669a66f18a format 2018-09-26 23:48:59 +03:00
gabime
e8dae26176 Moved spdlog::make_unique to spdlog::details::make_unique and prevent T to be array 2018-09-26 23:48:36 +03:00
gabime
65defd3806 Replaced SPDLOG_FINAL macro with final 2018-09-26 14:33:37 +03:00
gabime
ebce97947d use make_unique 2018-09-01 21:30:05 +03:00
gabime
b962fbb15c Fixed issue #797 2018-08-15 19:01:44 +03:00
gabime
05d6960ebc code formatting and clang tidy warnings fixes 2018-08-13 10:30:02 +03:00
gabime
74c10df169 Changed SPDLOG_VERSION to be numeric 2018-07-25 00:03:27 +03:00
gabime
9e4925eff0 clang format 2018-07-21 23:48:07 +03:00
gabime
9cbdd5ffd4 Added async_nonblocking factory 2018-07-20 23:20:48 +03:00
gabime
3aaefc48ec Minor cleaning of common.h 2018-07-19 15:07:54 +03:00
gabime
0a3c81826f Changed some functions to accept strings instead of ref to strings for better semantics 2018-07-19 15:03:08 +03:00
gabime
81f29a9a7a Fixed wchar support in messages 2018-07-10 17:01:49 +03:00
Gabi Melman
99cc35384b
Update common.h 2018-07-08 19:24:26 +03:00
gabime
887326e715 minor code cleanup 2018-07-08 01:41:32 +03:00
gabime
7ed8e1b59d renamed async block policy 2018-07-08 00:53:50 +03:00
gabime
95de24e4f6 fixed tests and renamed to_short_str 2018-07-04 09:59:26 +03:00
gabime
1d9e2304be renamed level::to_str() to level::to_c_str() 2018-07-04 02:08:28 +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
Gabi Melman
58e09dbd33
Update common.h 2018-06-13 21:14:18 +03:00
Gabi Melman
e770673f11
Update common.h 2018-06-13 21:13:22 +03:00
gabime
6d5670fde7 format 2018-06-13 20:19:13 +03:00