logman 0.1.0
Modern C++23 header-only logging manager wrapping spdlog with channels, listeners, and structured events
Loading...
Searching...
No Matches
logman::ListenerSink Class Reference

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.
 

Detailed Description

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.


The documentation for this class was generated from the following file: