|
logman 0.1.0
Modern C++23 header-only logging manager wrapping spdlog with channels, listeners, and structured events
|
spdlog sink that dispatches every record to a list of user-registered listener callbacks as LogEvent values.
More...
#include <listener_sink.hpp>
Inherits spdlog::sinks::base_sink< std::mutex >.
Public Member Functions | |
| std::size_t | listener_count () const |
| Snapshot of current listener count — primarily for tests. | |
spdlog sink that dispatches every record to a list of user-registered listener callbacks as LogEvent values.
Listeners run outside the sink lock (snapshot-then-invoke) and each invocation is guarded by a try/catch so one misbehaving listener can't crash or stall the pipeline.