Configures appenders and loggers available in the logging system.
More...
#include <Configuration.h>
Configures appenders and loggers available in the logging system.
◆ addAppender()
| Configuration & olp::logging::Configuration::addAppender |
( |
std::shared_ptr< IAppender > |
appender, |
|
|
logging::Level |
level = logging::Level::Trace |
|
) |
| |
|
inline |
Adds the appender along with its log level to the configuration.
- Parameters
-
| appender | The appender to add. |
| level | The log level of the appender. |
◆ createDefault()
| static Configuration olp::logging::Configuration::createDefault |
( |
| ) |
|
|
static |
◆ getAppenders()
| auto olp::logging::Configuration::getAppenders |
( |
| ) |
const |
|
inline |
Gets the appenders from the configuration.
- Returns
- The appenders and their log levels.
◆ isValid()
| bool olp::logging::Configuration::isValid |
( |
| ) |
const |
|
inline |
Checks whether the configuration is valid.
- Returns
- True if the configuration is valid; false otherwise.
The documentation for this class was generated from the following file: