Skip to main content

7 docs tagged with "sinks"

View all tags

Console sinks

Console output is the default destination because it's the one that always exists — no file

Custom sinks

A custom sink is the supported way to send logs anywhere spdlog doesn't already reach — an in-memory

File sinks

The simplest durable destination — and the one whose failure modes (permissions, unbounded growth,

Multi-sink loggers

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

Rotating and daily sinks

Two different answers to "the log file cannot grow forever": rotate by size whenever the current file

Sink overview

The split of responsibility is deliberate: a logger decides whether to log at all, a sink decides

Syslog and platform sinks

When the platform already owns log collection — syslog, the systemd journal, the Windows Event Log —