Replies: 2 comments
-
Backtrace of logger is available
There is no feature to back off the logs of a specific sink, so it must be implemented custom sink. See the Wiki for a custom sink implementation: https://github.com/gabime/spdlog/wiki/4.-Sinks#implementing-your-own-sink spdlog/include/spdlog/logger-inl.h Lines 107 to 122 in ad0e89c spdlog/include/spdlog/logger-inl.h Lines 210 to 219 in ad0e89c |
Beta Was this translation helpful? Give feedback.
-
https://github.com/gabime/spdlog/blob/v1.11.0/include/spdlog/sinks/ringbuffer_sink.h |
Beta Was this translation helpful? Give feedback.
-
I help develop a computing framework that particle-physics experiments use to process their data. The framework contains a logging facility that I'd love to replace with spdlog. However, one of the features we provide is an exponential back-off of messages logged to a particular sink.
For example, a user could write something like:
and the output would be something like:
Does spdlog have such a back-off facility (perhaps through a custom logger)? Or would this have to be a new feature?
Beta Was this translation helpful? Give feedback.
All reactions