Logger configuration static class.
More...
#include <config.h>
|
static void | ConfigLogger (const std::shared_ptr< Processor > &sink) |
| Configure default logger with a given logging sink processor.
|
|
static void | ConfigLogger (const std::string &name, const std::shared_ptr< Processor > &sink) |
| Configure named logger with a given logging sink processor.
|
|
static Logger | CreateLogger () |
| Create default logger.
|
|
static Logger | CreateLogger (const std::string &name) |
| Create named logger.
|
|
static void | Startup () |
| Startup the logging infrastructure.
|
|
static void | Shutdown () |
| Shutdown the logging infrastructure.
|
|
Logger configuration static class.
Logger configuration provides static interface to configure loggers.
Thread-safe.
Definition at line 24 of file config.h.
◆ Config() [1/2]
CppLogging::Config::Config |
( |
const Config & |
| ) |
|
|
delete |
◆ Config() [2/2]
CppLogging::Config::Config |
( |
Config && |
| ) |
|
|
delete |
◆ ~Config()
CppLogging::Config::~Config |
( |
| ) |
|
◆ ConfigLogger() [1/2]
void CppLogging::Config::ConfigLogger |
( |
const std::shared_ptr< Processor > & |
sink | ) |
|
|
static |
◆ ConfigLogger() [2/2]
void CppLogging::Config::ConfigLogger |
( |
const std::string & |
name, |
|
|
const std::shared_ptr< Processor > & |
sink |
|
) |
| |
|
static |
Configure named logger with a given logging sink processor.
- Parameters
-
name | - Logger name |
sink | - Logging sink processor |
Definition at line 28 of file config.cpp.
◆ CreateLogger() [1/2]
Logger CppLogging::Config::CreateLogger |
( |
| ) |
|
|
static |
Create default logger.
If the default logger was not configured before it will be automatically configured to a one with TextLayout and ConsoleAppender.
- Returns
- Created instance of the default logger
Definition at line 37 of file config.cpp.
◆ CreateLogger() [2/2]
Logger CppLogging::Config::CreateLogger |
( |
const std::string & |
name | ) |
|
|
static |
Create named logger.
If the named logger was not configured before an instance of the default logger will be returned.
- Parameters
-
- Returns
- Created instance of the named logger
Definition at line 55 of file config.cpp.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ Shutdown()
void CppLogging::Config::Shutdown |
( |
| ) |
|
|
static |
Shutdown the logging infrastructure.
Definition at line 86 of file config.cpp.
◆ Startup()
void CppLogging::Config::Startup |
( |
| ) |
|
|
static |
The documentation for this class was generated from the following files: