mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 02:19:35 +08:00
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
This commit is contained in:
@@ -114,3 +114,10 @@
|
||||
//
|
||||
// #define SPDLOG_FINAL final
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Uncomment count in print warning message about number of dropped messages.
|
||||
// Only relevant for async_logger with async_overflow_policy::discard_log_msg
|
||||
//
|
||||
#define SPDLOG_ASYNC_COUNT_DISCARDED_MSG
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
Reference in New Issue
Block a user