Base module
ConsoleChannel
Log channel that writes formatted messages to standard output.
ConsoleChannel
#include <icy/logger.h>class ConsoleChannelDefined in src/base/include/icy/logger.h:414
Inherits:
LogChannel
Log channel that writes formatted messages to standard output.
List of all members
| Name | Kind | Owner |
|---|---|---|
ConsoleChannel | function | Declared here |
~ConsoleChannel | function | Declared here |
write | function | Declared here |
LogChannel | function | Inherited from LogChannel |
~LogChannel | function | Inherited from LogChannel |
write | function | Inherited from LogChannel |
write | function | Inherited from LogChannel |
format | function | Inherited from LogChannel |
name | function | Inherited from LogChannel |
level | function | Inherited from LogChannel |
timeFormat | function | Inherited from LogChannel |
setLevel | function | Inherited from LogChannel |
setTimeFormat | function | Inherited from LogChannel |
setFilter | function | Inherited from LogChannel |
_name | variable | Inherited from LogChannel |
_level | variable | Inherited from LogChannel |
_timeFormat | variable | Inherited from LogChannel |
_filter | variable | Inherited from LogChannel |
Inherited from LogChannel
| Kind | Name | Description |
|---|---|---|
function | LogChannel | |
function | ~LogChannel virtual | Defaulted destructor. |
function | write virtual | Writes a log stream entry to this channel. |
function | write virtual | Writes a plain message to this channel. |
function | format virtual | Formats a log stream entry into the given output stream. |
function | name const inline | Returns the channel name. |
function | level const inline | Returns the minimum severity level. |
function | timeFormat const inline | Returns the timestamp format string. |
function | setLevel inline | Sets the minimum severity level. |
function | setTimeFormat inline | Sets the timestamp format string. |
function | setFilter inline | Sets a realm filter; only messages whose realm matches are written. |
variable | _name | |
variable | _level | |
variable | _timeFormat | |
variable | _filter |
Public Methods
| Return | Name | Description |
|---|---|---|
ConsoleChannel | ||
void | write virtual override | 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 = Level::Debug, std::string timeFormat = "%H:%M:%S")Defined in src/base/include/icy/logger.h:420
Parameters
nameUnique channel name.levelMinimum severity level; messages below this level are dropped.timeFormatstrftime-compatible format string for timestamps.
write
virtual override
virtual void write(const LogStream & stream) overrideDefined in src/base/include/icy/logger.h:427
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.
