gabime
1253a57db6
Add mdc support for default format
2024-03-29 17:04:53 +03:00
gabime
cba66029e2
Update mdc
2024-03-29 16:57:55 +03:00
Gabi Melman
4517ce8b5c
Update mdc.h
2024-03-29 15:28:28 +03:00
Gabi Melman
1f93017403
Update mdc.h
2024-03-29 15:25:46 +03:00
Gabi Melman
f030afe696
Update mdc.h
2024-03-29 15:25:24 +03:00
Gabi Melman
2969dde400
Revert "Updated bundled fmt to 10.2.1"
...
This reverts commit d8e0ad46bf
.
2024-03-29 14:46:41 +03:00
Gabi Melman
d8e0ad46bf
Updated bundled fmt to 10.2.1
2024-03-28 21:01:15 +02:00
Yubin
6725584e27
Make async_logger::flush() synchronous and wait for the flush to complete ( #3049 )
2024-03-23 15:52:32 +02:00
Tomas-Zhu
73e2e02b42
Fix #3038 ( #3044 )
...
* Fix #3038
* Fix #3038 again
---------
Co-authored-by: Tomas-Zhu <z773922114@gmail.com>
2024-03-21 12:16:11 +02:00
Massimiliano Riva
d03eb40c17
Added Mapped Diagnostic Context (MDC) support ( #2907 )
...
* Added Mapped Diagnostic Context (MDC) support
* Update include statement
* Optimize string creation
* Fix includes
* Fix padding rules in mdc empty case
* Add comment to describe the use of mdc formatter
2024-03-18 17:41:46 +02:00
gabime
23587b0d9a
Fixed regisry-inl.h
2024-03-17 01:20:26 +02:00
gabime
819eb27c5d
Use find if registry is bigger than 10 in registry::get(std::string_view logger_name)
2024-03-17 00:30:05 +02:00
gabime
4052bc0621
Use find if registry is bigger than 20 in registry::get(std::string_view logger_name)
2024-03-17 00:27:43 +02:00
magnus-nomono
ae525b75c3
Add missing include ( #3026 )
2024-03-10 02:10:32 +02:00
Alan Candido
a45c939040
Update stopwatch.h ( #3034 )
...
Adding elapsed time in milliseconds.
2024-03-09 21:40:05 +02:00
Leadbelly
5532231bbc
feature: adds string view overloads for logger accessor ( #3023 )
...
Co-authored-by: Ben Leadbetter <ben.leadbetter@native-instruments.com>
2024-02-29 10:53:56 +02:00
Gabi Melman
134f9194bb
Update registry.h code formatting
2024-02-14 21:52:21 +02:00
cohdan
fe79bfcc51
Expose the flusher thread object to user in order to allow setting of thread name and thread affinity when needed ( #3009 )
...
* Expose the flusher thread object to user in order to allow setting of thread name and thread affinity when needed
* Code review fix - periodic_worker thread getter should return a reference and not a pointer
2024-02-14 21:48:44 +02:00
Dimitri Papadopoulos Orfanos
47b7e7c736
Fix typos found by codespell ( #3011 )
2024-02-12 23:02:31 +02:00
liubing
8979f7fb2a
Also use _stat() on Windows to be more UTF8 friendly ( #2978 )
...
* Also use _stat() on Windows to be more UTF8 friendly
* Cosmetic changes
2024-01-13 23:46:18 +02:00
gabime
7c02e204c9
Bump version to 1.13.0
2024-01-12 12:12:27 +02:00
gabime
2aa8b6c971
Check fd_ is not nullptr in file_helper
2024-01-12 12:10:26 +02:00
Marcus Müller
ddce42155e
fmt/*.h: include tweakme.h to set SPDLOG_FMT_EXTERNAL according to system ( #2923 )
...
Signed-off-by: Marcus Müller <marcus@hostalia.de>
2023-10-25 19:22:39 +03:00
M010
8b331e2cd1
Fix wrong thread_id (TID) in systemd_sink.h ( #2919 )
2023-10-24 01:43:47 +03:00
shannonbooth
2d5179ba7d
sinks: Make syslog_sink.h's syslog_prio_from_level protected ( #2918 )
...
To allow for using this function from a derived sink.
2023-10-23 22:49:01 +03:00
Keith Kraus
0c4fb032e4
Match SPDLOG_CONSTEXPR_FUNC to FMT_CONSTEXPR ( #2901 )
...
* Modify the condition of SPDLOG_CONSTEXPR_FUNC to match that of fmt
2023-10-13 10:00:00 +03:00
Peter Nemeth
479a5ac3f1
Fix OS availability check of pthread_threadid_np for iOS ( #2897 )
2023-10-11 10:34:42 +03:00
gabime
e5865186d4
Revert "Added a function to add callbacks that are called when a logger is registered ( #2883 )"
...
This reverts commit b6eeb7364c
, since it causes deadlocks too easily for the users.
2023-09-25 20:53:45 +03:00
Jonathan Vannier
b6eeb7364c
Added a function to add callbacks that are called when a logger is registered ( #2883 )
...
* Added a function to add callbacks that are called when a logger is registered
* Fix non captured registration 2 not being properly tested for
* Replace std::list by std::vector
* Remove const refs to shared pointers
* Fix missing header
2023-09-25 18:49:04 +03:00
gabime
0a53eafe18
update clang format again
2023-09-25 16:40:36 +03:00
gabime
4b2a8219d5
reformat code
2023-09-25 16:20:42 +03:00
gabime
9d52261185
clang format
2023-09-25 16:08:29 +03:00
gabime
95c226e9c9
format
2023-09-25 05:05:25 +03:00
Gabi Melman
5931a3d6f8
Fixed windows compile
2023-09-25 04:58:45 +03:00
Gabi Melman
f4afd81ce6
Update common.h
2023-09-25 03:07:15 +03:00
gabime
1a0bfc7a89
clang format
2023-09-25 02:44:07 +03:00
gabime
f24f7fa2fa
Added missing include mutex
2023-09-25 02:44:00 +03:00
Gabi Melman
b9cb721b92
Update async_logger-inl.h
2023-09-22 02:42:37 +03:00
Gabi Melman
1d6dbc2a56
Fix code formatting of async_logger-inl.h
2023-09-22 02:42:00 +03:00
Yubin
b5b5043d42
Support async_overflow_policy::discard_new ( #2876 )
...
Reason for the discard_new policy: when there is an overflow, there
is usually some unexpected issue (a bug, or some other unexpected stuff).
And in case of unexpected issue, the first arrived log messages are usually
more important than subsequent ones. For example, some application
keep logging error messages in case of functionality failure, which,
when using async_overflow_policy::overrun_oldest, will overrun the
first arrived messages that may contain real reason for the failure.
2023-09-09 23:05:08 +03:00
gabime
d109e1dcd0
minor cleanup
2023-09-09 13:32:44 +03:00
gabime
a98d3ab0c7
clang format
2023-09-09 12:56:47 +03:00
neothenil
8014d6c31a
Fix encoding issue in qt_sinks ( #2862 )
...
Added support for utf8 in qt_color_sink
2023-09-09 12:52:10 +03:00
mike
cedfeeb95f
Add SPDLOG_TO_VERSION to compare spdlog version ( #2853 )
...
You can use SPDLOG_VERSION to select the latest spdlog features
where available while falling back to older implementations otherwise.
Using SPDLOG_TO_VERSION() for the value to compare with is recommended.
for Example:
```c++
void sink_it_(const details::log_msg &msg) override
{
#if SPDLOG_VERSION < SPDLOG_TO_VERSION(1,4,0)
fmt::memory_buffer formatted;
#else
memory_buf_t formatted;
#endif
sinks::base_sink<Mutex>::formatter_->format(msg, formatted);
// bala bala...
}
```
2023-08-14 08:19:02 +03:00
gabime
bffceb90b0
Fixed circular_q size impl and added tests
2023-08-05 17:03:04 +03:00
Gabi Melman
d8d23a6606
Fix #2820
2023-07-21 00:37:03 +03:00
qwark
76dfc7e7c0
Qt Sink : Allow for darker colors (for light background). ( #2817 )
...
Default are too bright if background is light(white).
2023-07-14 20:21:25 +03:00
gabime
bed324e414
Formatted qt_sinks.h code
2023-07-08 15:27:16 +03:00
gabime
72a7ec3eb9
Bumped spdlog version to 1.12.0
2023-07-08 15:25:17 +03:00
gabime
4338b9cd23
Revert "Updated bundled fmt to version 10.0.0"
...
This reverts commit 62e55e7a7f
.
2023-07-08 13:23:40 +03:00