Mohammad Ali
3cab260814
Add a trivial callback sink ( #2610 )
...
Add a trivial callback sink
2023-01-19 19:46:34 +02:00
albert-github
5a63426d1c
Spelling corrections ( #2606 )
...
Spelling corrections v1.x
2023-01-15 13:41:30 +02:00
Robin Lindén
6df64c6c34
Fix -Wshadow warnings in spdlog::sinks::dist_sink ( #2599 )
...
This is similar to fbba6dff20 but fixes a
few member functions missed in that commit.
2023-01-10 00:25:26 +01:00
Arnar Bjarni Arnarson
0b9ff5210a
Fix type of event id in win_eventlog_sink ( #2598 )
...
Co-authored-by: Arnar Bjarni Arnarson <arnar@menandmice.com >
2023-01-10 00:25:01 +01:00
NaDDu
ff88b13c35
Fixed variable name ( #2573 )
...
* fixed variable name
* Changed the variable name from check_debbugger_present_ to check_debugger_present_.
Co-authored-by: cpp <c.pp@navercorp.com >
2022-12-10 00:28:28 +02:00
zydxhs
f0cd9d1530
dup_filter_sink adds parameters to enable setting the level of skipped logs ( #2563 )
...
* dup_filter_sink adds parameters to enable setting the level of skipped logs
* rename the param name 'level' to 'notification_level'
Co-authored-by: zhuyadong <zhuyadong@kedacom.com >
2022-12-02 09:51:34 +02:00
zydxhs
50e8b2d982
fix dup_filter_sink lose source_loc ( #2549 )
...
Co-authored-by: zhuyadong <zhuyadong@kedacom.com >
2022-11-22 09:38:01 +02:00
gabime
bd5a81df70
Check IsDebuggerPresent in msvc_sink before doing work. Fix #2408
2022-11-01 00:52:39 +02:00
gabime
4d7308f26d
Fixed msvc warning C4800 in win_eventlog_sink
2022-11-01 00:01:19 +02:00
gabime
fbba6dff20
Fix #2431
2022-10-31 23:23:57 +02:00
刘耘呈
3c0e036cc9
Use 'SPDLOG_FMT_RUNTIME' to fix compilation error throwed MSVC and fmt 9.1.x ( #2517 )
...
* Use 'SPDLOG_FMT_RUNTIME' to fix compilation error throwed MSVC and fmt 9.1.x
* Fix #2512
2022-10-20 02:11:16 +03:00
Sandor Magyar
5fba2867f5
Change mongocxx::exception handler to std::exception
2022-10-19 14:02:21 -04:00
Sandor Magyar
b5d361fc21
clang-format mongo_sink.h
2022-10-19 10:08:54 -04:00
Sandor Magyar
0674e79066
Improve arg passing and exceptions in mongo_sink
2022-10-19 09:53:33 -04:00
Sandor Magyar
5f67ef4d6f
Remove pointless try block in mongo_sink
2022-10-18 20:25:32 -04:00
Sandor Magyar
1bb1f05d73
Adjust MongoCXX instance handling in mongo_sink
...
Changes suggested by @gabime on #2519
2022-10-18 20:13:17 -04:00
Sandor Magyar
a3c47cc682
Don't force Mongo sink to own MongoCXX instance
...
There can only be one instance in the whole program, so programs that use the
Mongo sink and also separately use MongoCXX may have problems if the Mongo sink
owns the instance. MongoCXX recommends that the main application manage its own
instance so configuration parameters can be passed to the constructor:
http://mongocxx.org/api/current/classmongocxx_1_1instance.html
However, this commit is not a breaking change. If no instance has been created
at construction time, the Mongo sink will still create and own the instance.
2022-10-17 17:32:08 -04:00
Sandor Magyar
0145223be1
Add numerical level to Mongo sink for easier queries
...
Filtering to a certain log level or above, a useful operation, can now be done
with an integer comparison as opposed to comparing to a list of strings in the
database query.
2022-10-17 16:15:23 -04:00
Sandor Magyar
f3b61c70ba
Catch exception by reference to fix -Wcatch-value warning
2022-10-17 16:04:49 -04:00
Shen-Ta Hsieh
5f8877b665
Explicitly casting level_enum to size_t.
...
See commit 2a4c34b878
2022-07-21 20:24:01 +08:00
panzhongxian
1eafcfab70
Romove the empty file if no log in first period in hourly logger
2022-05-24 16:19:21 +08:00
John Armstrong
799802f93b
Add FMT_STRING to allow compilation with FMT_ENFORCE_COMPILE_STRING
2022-05-19 11:32:54 -07:00
Timo Lange
2eedf1fa28
remove usage of forward args
2022-05-06 17:06:35 +02:00
Timo Lange
0a875d7b2d
use __android_log_write or __android_log_buf_write based on template paramter
2022-05-06 08:55:41 +02:00
Gabi Melman
173d06578f
Fixed move in ringnuffer_sink
2022-04-27 08:35:50 +03:00
Charles Milette
cd4f6c1466
Replace fmt_helper::to_string by a macro
2022-04-26 23:25:35 -04:00
Charles Milette
37dd6bb159
Address PR review comments
2022-04-25 21:59:56 -04:00
Charles Milette
ebeb3707b1
Switch to vformat_to
...
Drive-by: reduce the amount of occurences of #ifdef SPDLOG_USE_STD_FORMAT
2022-04-21 21:59:02 -04:00
gabime
76fb40d954
clang format
2022-04-04 16:48:58 +03:00
Delgan
36b4b9dac9
Add optional "ident" argument to systemd sink constructor
2022-04-01 23:20:28 +02:00
Delgan
c1aeefb0c9
fixup! Add option to enable formatting of systemd sink
...
Add default value to "systemd_sink" contructor
2022-03-29 22:26:52 +02:00
Delgan
3c1ee54112
Add option to enable formatting of systemd sink
2022-03-27 11:31:49 +02:00
Surfy Cui
a732a0dc85
Limit max number of rotating files to 200000, not max size
2022-02-14 15:30:06 +08:00
Gabi Melman
4c2ce2c82c
Update rotating_file_sink-inl.h
2022-02-13 09:41:15 +02:00
gabime
4cea9b8729
Limit max number of rotating files to 200000. Fix #1905
2022-02-12 14:10:43 +02:00
gabime
c432fdd987
Bump fmt to version 8.1.1 and run clang-format
2022-02-12 13:20:15 +02:00
gabime
0b48976be4
flush before rotating
2022-02-05 19:45:19 +02:00
gabime
5b03dc1796
Throw if rotating_file_sink constructor receives max_size==0 as arg
2022-02-05 17:37:55 +02:00
gabime
ec8b0beddd
comment
2022-02-05 17:16:36 +02:00
gabime
7536192058
Fix #2261
2022-02-05 17:13:33 +02:00
Dave Rigby
2a4c34b878
Allow forward-declaration of level_enum
...
spdlog::level::level_enum cannot be forward-declared at present, as
the definition does not specify an underlying type.
To allow users to make use of <spdlog/fwd.h> to refer to
level::level_enum without pulling in all of <spdlog/common.h> (which
can be quite costly), specify an underlying type (int) for
level::level_enum, then add a forward-declaration for it to
spdlog/fwd.h.
Note this required explicitly casting level_enum to size_t within ansicolor_sink due to sign-conversion errors:
implicit conversion changes signedness: 'const level::level_enum' to 'std::__1::array::size_type' (aka 'unsigned long') [-Wsign-conversion]
It would appear that an enum with an unspecified underlying type is in
some kind of superposition - it can be treated as both signed _and_
unsigned - using an underlying type of 'unsigned int' triggers even
more warnings of this kind...
2022-01-11 15:12:23 +00:00
Sprite
3540ba32e9
Reset current size if rotated files on open
2022-01-04 09:16:20 +08:00
LE GARREC Vincent
58e2b455fb
Fix build with "-fvisibility=hidden"
2021-11-25 00:42:27 +01:00
Shen-Ta Hsieh
8d46977060
Avoid c-style casting
2021-11-19 09:58:29 +08:00
gabime
dc030ec53c
clang-format
2021-11-16 23:44:35 +02:00
Charles Milette
126a9fb261
Merge branch 'v1.x' of https://github.com/gabime/spdlog into std-format
2021-11-16 11:30:23 -05:00
Charles Milette
4001032858
Add attribution, return to previous code for daily_filename_format_calculator with fmtlib
2021-11-16 11:22:30 -05:00
Charles Milette
701ef17227
Move strftime to daily_filename_format_calculator
2021-11-16 10:05:35 -05:00
gabime
5b7dfefc7e
rename file_event_handlers_t to file_event_handlers
2021-11-16 16:41:04 +02:00
Charless Milette
95aa159bdd
Fix daily_filename_format_calculator (hopefully)
2021-11-15 15:50:16 -05:00