|
olp-cpp-sdk
1.23.1
|
Configures appenders and loggers available in the logging system. More...
#include <Configuration.h>
Classes | |
| struct | AppenderWithLogLevel |
| Contains an appender and its log level. More... | |
Public Types | |
| using | AppenderList = std::vector< AppenderWithLogLevel > |
| A typedef for a list of appenders. | |
Public Member Functions | |
| bool | isValid () const |
| Checks whether the configuration is valid. More... | |
| Configuration & | addAppender (std::shared_ptr< IAppender > appender, logging::Level level=logging::Level::Trace) |
| Adds the appender along with its log level to the configuration. More... | |
| Configuration & | clear () |
| Clears the list of appenders. | |
| const AppenderList & | getAppenders () const |
| Gets the appenders from the configuration. More... | |
Static Public Member Functions | |
| static Configuration | createDefault () |
Creates a default configuration by adding an instance of DebugAppender and ConsoleAppender as appenders. More... | |
Configures appenders and loggers available in the logging system.
|
inline |
Adds the appender along with its log level to the configuration.
| appender | The appender to add. |
| level | The log level of the appender. |
|
static |
Creates a default configuration by adding an instance of DebugAppender and ConsoleAppender as appenders.
|
inline |
Gets the appenders from the configuration.
|
inline |
Checks whether the configuration is valid.