Skip to main content

4 docs tagged with "loggers"

View all tags

Creating loggers

There are two ways to make a logger: the factory helpers, which build a sink and register the logger

Logger lifecycle

Loggers are shared_ptr-owned. The registry holds one reference, you typically hold another (or

Multi-sink loggers

One logger, several destinations โ€” this is the standard shape for a real application: everything to

The registry

The registry is a global nameโ†’logger map. It's what makes spdlog::get("db") work from any file in