RSTools 3.1.0
Versatile C++20 utility library
Loading...
Searching...
No Matches
NullSink.hpp
Go to the documentation of this file.
1#pragma once
2
4
5namespace RST::Log {
6
8 class NullSink : public ASink {
9 protected:
10 void log(const LogMessage&) override {}
11 };
12
13}
Base class for sinks: handles the level, the pattern and the locking.
Definition ASink.hpp:17
Discards every message.
Definition NullSink.hpp:8
void log(const LogMessage &) override
Writes one message; called with the sink mutex locked.
Definition NullSink.hpp:10
Thread-safe logging: loggers, sinks, patterns and macros.
Definition Terminal.hpp:8
A log record as passed to the sinks.
Definition LogMessage.hpp:18