Standard console output log sink with optional ANSI color codes.
More...
#include <ConsoleLogSink.hpp>
Standard console output log sink with optional ANSI color codes.
◆ ConsoleLogSink()
| corium::logging::sinks::ConsoleLogSink::ConsoleLogSink |
( |
bool |
useColors = true | ) |
|
|
inlineexplicitnoexcept |
◆ colorsEnabled()
| bool corium::logging::sinks::ConsoleLogSink::colorsEnabled |
( |
| ) |
const |
|
inlinenoexcept |
◆ setColorsEnabled()
| void corium::logging::sinks::ConsoleLogSink::setColorsEnabled |
( |
bool |
enable | ) |
|
|
inlinenoexcept |
Enable or disable ANSI color formatting.
◆ write()
template<std::size_t N>
| void corium::logging::sinks::ConsoleLogSink::write |
( |
const LogEventT< N > & |
event | ) |
const |
|
inline |
Write log event to std::cout or std::cerr.
The documentation for this class was generated from the following file: