Base module
ConsoleChannel
Log channel that writes formatted messages to standard output.
ConsoleChannel
#include <icy/logger.h>Inherits:
LogChannel
Log channel that writes formatted messages to standard output.
Public Methods
| Return | Name | Description |
|---|---|---|
ConsoleChannel | #### Parameters | |
void | write virtual | Formats and writes the log stream entry to stdout. Messages below the channel level or filtered by realm are silently dropped. |
ConsoleChannel
ConsoleChannel(std::string name, Level level, std::string timeFormat)Parameters
nameUnique channel name.levelMinimum severity level; messages below this level are dropped.timeFormatstrftime-compatible format string for timestamps.
write
virtual
virtual void write(const LogStream & stream)Formats and writes the log stream entry to stdout. Messages below the channel level or filtered by realm are silently dropped.
Parameters
streamThe log stream to write.
