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

ReturnNameDescription
ConsoleChannel#### Parameters
voidwrite virtualFormats 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

  • name Unique channel name.

  • level Minimum severity level; messages below this level are dropped.

  • timeFormat strftime-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

  • stream The log stream to write.