|
5.0.0
Freundlich's C++ toolkit
|
A logger context manages log levels.
Public Member Functions | |
| FCPPT_NONMOVABLE (context) | |
| FCPPT_LOG_DETAIL_SYMBOL | context (fcppt::log::optional_level const &root, fcppt::log::level_stream_array &&streams) |
| Constructs a context. | |
| FCPPT_LOG_DETAIL_SYMBOL | ~context () |
| FCPPT_LOG_DETAIL_SYMBOL void | set (fcppt::log::location const &, fcppt::log::optional_level const &) |
| Updates the log level at a location. | |
| FCPPT_LOG_DETAIL_SYMBOL fcppt::log::optional_level | get (fcppt::log::location const &) const |
| Gets the current log level for a location. | |
| FCPPT_LOG_DETAIL_SYMBOL fcppt::log::const_level_stream_array_reference | level_streams () const |
| The level streams of this context. | |
Friends | |
| class | fcppt::log::object |
| FCPPT_LOG_DETAIL_SYMBOL fcppt::log::context::context | ( | fcppt::log::optional_level const & | root, |
| fcppt::log::level_stream_array && | streams ) |
Constructs a context.
| root | The root log level which will be the default for new log locations |
| streams | The stream sinks to use for all log locations |
| FCPPT_LOG_DETAIL_SYMBOL fcppt::log::context::~context | ( | ) |
| fcppt::log::context::FCPPT_NONMOVABLE | ( | context | ) |
|
nodiscard |
Gets the current log level for a location.
|
nodiscard |
The level streams of this context.
| FCPPT_LOG_DETAIL_SYMBOL void fcppt::log::context::set | ( | fcppt::log::location const & | , |
| fcppt::log::optional_level const & | ) |
Updates the log level at a location.
Note that every location below is also updated.
|
friend |