2#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_LOGGERS_CONSOLELOGGER_CONSOLESTREAMROUTE_HPP_INCLUDED
3#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_LOGGERS_CONSOLELOGGER_CONSOLESTREAMROUTE_HPP_INCLUDED
50 std::ostream& stream) {
The primary namespace for the LogIt++ library.
@ LOG_LVL_TRACE
Trace level logging.
@ LOG_LVL_FATAL
Fatal level logging.
ConsoleStreamKind
Identifies a target output stream for ConsoleLogger routes.
@ Cout
Routes records to std::cout.
@ Custom
Routes records to a caller-provided std::ostream pointer.
@ Cerr
Routes records to std::cerr.
Maps a log-level range to a target output stream.
LogLevel min_level
Inclusive lower bound.
static ConsoleStreamRoute to_cerr(LogLevel min_level, LogLevel max_level)
Builds a route that targets std::cerr for the given level range.
static ConsoleStreamRoute to_cout(LogLevel min_level, LogLevel max_level)
Builds a route that targets std::cout for the given level range.
LogLevel max_level
Inclusive upper bound.
static ConsoleStreamRoute to_stream(LogLevel min_level, LogLevel max_level, std::ostream &stream)
Builds a route that targets a caller-provided std::ostream for the given level range.
std::ostream * custom_stream
Used when kind == Custom; null is ignored and the route falls back.
ConsoleStreamKind kind
Stream identifier.