![]() |
LogIt++
Header-only, macro-first C++ logging library
|
Maps a log-level range to a target output stream. More...
#include <ConsoleStreamRoute.hpp>
Static Public Member Functions | |
| static ConsoleStreamRoute | to_cout (LogLevel min_level, LogLevel max_level) |
| Builds a route that targets std::cout for the given level range. | |
| 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_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. | |
Public Attributes | |
| LogLevel | min_level = LogLevel::LOG_LVL_TRACE |
| Inclusive lower bound. | |
| LogLevel | max_level = LogLevel::LOG_LVL_FATAL |
| Inclusive upper bound. | |
| ConsoleStreamKind | kind = ConsoleStreamKind::Cout |
| Stream identifier. | |
| std::ostream * | custom_stream = nullptr |
| Used when kind == Custom; null is ignored and the route falls back. | |
Maps a log-level range to a target output stream.
Definition at line 22 of file ConsoleStreamRoute.hpp.
|
inlinestatic |
Builds a route that targets std::cerr for the given level range.
Definition at line 38 of file ConsoleStreamRoute.hpp.
|
inlinestatic |
Builds a route that targets std::cout for the given level range.
Definition at line 29 of file ConsoleStreamRoute.hpp.
|
inlinestatic |
Builds a route that targets a caller-provided std::ostream for the given level range.
Definition at line 47 of file ConsoleStreamRoute.hpp.
| std::ostream* logit::ConsoleStreamRoute::custom_stream = nullptr |
Used when kind == Custom; null is ignored and the route falls back.
Definition at line 26 of file ConsoleStreamRoute.hpp.
| ConsoleStreamKind logit::ConsoleStreamRoute::kind = ConsoleStreamKind::Cout |
Stream identifier.
Definition at line 25 of file ConsoleStreamRoute.hpp.
| LogLevel logit::ConsoleStreamRoute::max_level = LogLevel::LOG_LVL_FATAL |
Inclusive upper bound.
Definition at line 24 of file ConsoleStreamRoute.hpp.
| LogLevel logit::ConsoleStreamRoute::min_level = LogLevel::LOG_LVL_TRACE |
Inclusive lower bound.
Definition at line 23 of file ConsoleStreamRoute.hpp.