Zappy Server
C++ game server: world, rules, scheduler, network
Loading...
Searching...
No Matches
ConsoleSink.hpp
Go to the documentation of this file.
1#pragma once
2
4
6class ConsoleSink : public ILogSink {
7 public:
8 explicit ConsoleSink(LogLevel minLevel = LogLevel::Info);
9 void write(LogLevel level, const std::string& line) override;
10
11 private:
13};
LogLevel
Definition ILogSink.hpp:5
Writes log lines to the terminal (stdout), filtered by a minimum level.
void write(LogLevel level, const std::string &line) override
Write one already-formatted line if level passes the sink's threshold.
LogLevel _minLevel
Output destination for a fully-formatted log line (Strategy pattern).
Definition ILogSink.hpp:14