Commit Graph

80 Commits

Author SHA1 Message Date
Charles Milette
4f80077339
Support compile-time format string checking with std::format (#2544)
* Support compile-time format string checking with std::format

* Fix pre-VS 17.5 compilation

* Fix compilation without wchar_t support

* What am I doing

* Bring back fmt optimization

* Move to_string_view to common.h

* Fix SPDLOG_CONSTEXPR_FUNC emitting duplicate symbol errors when building in C++11

* Also add inline on VS 2013

* Appender doesn't work on wide strings
2022-11-12 23:07:11 +02:00
Nigel Stewart
57e5814364 SPDLOG_NO_SOURCE_LOC support for omitting __FILE__, __LINE__ and SPDLOG_FUNCTION information 2022-09-02 12:18:06 +10:00
gabime
53c9b70ea3 Fix #2211 2022-02-12 14:06:11 +02:00
Light
29b41741cb
Fix(tweakme): Typo
:(
2021-11-19 09:32:59 +03:30
Light
17f21df441
Fix(tweakme): SPDLOG_FUNCTION
- Uncommenting SPDLOG_FUNCTION will make MSVC fail to compile:
    __PRETTY_FUNCTION__ is shown in intellisense but it's not available at compile time
    https://stackoverflow.com/questions/48857887/pretty-function-in-visual-c
2021-11-19 09:30:22 +03:30
Charless Milette
44a4517e2b Support C++20 std::format as an alternative to fmtlib 2021-11-13 11:29:05 -05:00
gabime
68aed6a5eb Fixed building under c++17 2021-06-26 17:36:57 +03:00
steven lunt
ee22eed23d add macros for overriding the individual level names 2021-05-18 19:36:45 -04:00
Charles Milette
a453bccff0
Better support for / separators on Windows, improve wchar filename coverage 2021-01-06 04:15:14 -05:00
Gabi Melman
dd38e096b2
Fix issue #1486 2020-03-24 02:15:14 +02:00
gabime
5b0b8579b2 Fix #1485 by removing SPDLOG_NO_NAME option 2020-03-22 00:30:01 +02:00
gabime
10116b7717 Removed SPDLOG_NO_DATETIME option 2019-11-04 17:43:30 +02:00
gabime
bcfa9241b8 Updated copyright headers 2019-06-04 00:09:16 +03:00
gabime
b3ed5f77f2 Updated tweakme 2019-06-03 23:10:01 +03:00
gabime
46ef71e3ec Normalized copyright message 2019-05-11 20:06:17 +03:00
gabime
17f9cdd401 static lib wip 2019-04-05 23:05:46 +03:00
Mattias Fornander
0ccbdcdd1f Add tweak support for user short level names 2019-02-18 14:33:41 -07:00
possiblyhuman
32420b77c8 Reduced amount of macros used.
Removed SPDLOG_SOURCE_MACROS_ON and SPDLOG_FUNCTION_SUFFIX.
2019-01-09 21:15:19 +00:00
possiblyhuman
2124b7bf64 Allow filename/line number at all levels. Add function name %! support. 2019-01-08 22:52:40 +00:00
gabime
8a0fc92f20 Replaced SPDLOG_DISABLE_TID_CACHING with SPDLOG_NO_TLS 2018-11-15 16:42:42 +02:00
gabime
0e77c3391b New compile time API using SPDLOG_ACTIVE_LEVEL 2018-11-11 18:15:24 +02:00
gabime
f2f9f324ec Updated default API impl and tests 2018-10-13 19:23:11 +03:00
gabime
226d5a1d36 Added SPDLOG_DISABLE_DEFAULT_LOGGER option to tweakme.h 2018-10-12 03:17:51 +03:00
gabime
312fe4775d Added SPDLOG_DISABLE_DEFAULT_LOGGER option to tweakme.h 2018-10-12 03:16:22 +03:00
gabime
65defd3806 Replaced SPDLOG_FINAL macro with final 2018-09-26 14:33:37 +03:00
gabime
cb9c984aa7 registery and periodic flusher fixes. 2018-07-24 22:59:34 +03:00
gabime
9e4925eff0 clang format 2018-07-21 23:48:07 +03:00
gabime
81fa788bca Updated tests 2018-06-12 22:43:49 +03:00
gabime
e4d3eb64e6 Udpated example and spdlog.h 2018-04-20 02:57:05 +03:00
gabime
a2653d409f clang-format 2018-03-09 15:26:33 +02:00
Daniel Chabrowski
0c94ce0039 deleted copy op and a little format 2018-02-25 03:35:20 +01:00
gabime
799ba2a57b added SPDLOG_DISABLE_TID_CACHING macro to prevent invalid thread ids after fork 2017-11-26 00:40:47 +02:00
gabime
adbc22096a enable final keyword by default. Can be disabled in tweakme.h for older compilers 2017-11-25 15:53:35 +02:00
gabime
e7cf25a1c0 fixed issue #562 2017-11-25 15:41:55 +02:00
gabime
709948ff4a Fixed issue #527 2017-10-12 19:48:04 +03:00
fogo
ee525f9bef allow printf style logging
* tests updated for printf style
* tests makefile support printf style
2017-10-05 10:54:06 -03:00
Gabi Melman
dc8ac4c671 Update tweakme.h 2017-09-29 22:43:48 +03:00
Asit Kumar Dhal
3a40f0c34d fixed length and upper case log level tags 2017-07-12 20:25:32 +02:00
gabime
e1d4c4651b Minor formatting 2017-05-21 04:07:20 +03:00
gabime
8d164f47a8 tweakme disable counters by default 2017-05-21 04:03:36 +03:00
gabime
d56fa23eb9 fixed compilation errors 2017-05-21 03:48:54 +03:00
gabime
6cc7e7382e astyle 2017-05-21 01:56:56 +03:00
Alexander Zilberkant
ef6eb376d3 disable message counter feature in tweakme.h 2017-05-18 22:48:45 +03:00
Alexander Zilberkant
6547675e43 Revert "Merge pull request #441 from alzix/count_discarded"
This reverts commit 038733345a, reversing
changes made to 862d2f6f35.
2017-05-15 20:07:24 +03:00
Gabi Melman
13199034f0 Update tweakme.h 2017-05-13 01:25:48 +03:00
Gabi Melman
038733345a Merge pull request #441 from alzix/count_discarded
add an option to warn about discarded messages
2017-05-13 01:22:46 +03:00
Alexander Zilberkant
2b008efb06 disable SPDLOG_ASYNC_COUNT_DISCARDED_MSG 2017-05-13 01:10:58 +03:00
Alexander Zilberkant
0aeaf9e28e add an option to warn about discarded messages
when using async_logger with async_overflow_policy::discard_log_msg each discarded
message will be counted and warning will be printed by the worker thread

this new feature is disabled by default - as it may have a performance hit when discarding messages
2017-05-11 23:52:58 +03:00
Sidyhe
8ee6d38501 add wide string to utf8 string support 2017-05-10 21:02:41 +08:00
Jean-Michaël Celerier
4da5fa256c add SPDLOG_FINAL information in tweakme.h 2017-04-28 19:25:31 +02:00