CppLogging
1.0.4.0
C++ Logging Library
|
Logger configuration static class. More...
#include <config.h>
Public Member Functions | |
Config (const Config &)=delete | |
Config (Config &&)=delete | |
~Config () | |
Config & | operator= (const Config &)=delete |
Config & | operator= (Config &&)=delete |
Static Public Member Functions | |
static void | ConfigLogger (const std::shared_ptr< Processor > &sink) |
Configure default logger with a given logging sink processor. More... | |
static void | ConfigLogger (const std::string &name, const std::shared_ptr< Processor > &sink) |
Configure named logger with a given logging sink processor. More... | |
static Logger | CreateLogger () |
Create default logger. More... | |
static Logger | CreateLogger (const std::string &name) |
Create named logger. More... | |
static void | Startup () |
Startup the logging infrastructure. More... | |
static void | Shutdown () |
Shutdown the logging infrastructure. More... | |
Logger configuration static class.
Logger configuration provides static interface to configure loggers.
Thread-safe.
|
delete |
|
delete |
CppLogging::Config::~Config | ( | ) |
Definition at line 13 of file config.cpp.
|
static |
Configure default logger with a given logging sink processor.
sink | - Logging sink processor |
Definition at line 19 of file config.cpp.
|
static |
Configure named logger with a given logging sink processor.
name | - Logger name |
sink | - Logging sink processor |
Definition at line 28 of file config.cpp.
|
static |
Create default logger.
If the default logger was not configured before it will be automatically configured to a one with TextLayout and ConsoleAppender.
Definition at line 37 of file config.cpp.
|
static |
Create named logger.
If the named logger was not configured before an instance of the default logger will be returned.
name | - Logger name |
Definition at line 55 of file config.cpp.
|
static |
Shutdown the logging infrastructure.
Definition at line 86 of file config.cpp.
|
static |
Startup the logging infrastructure.
Definition at line 68 of file config.cpp.