CppLogging  1.0.4.0
C++ Logging Library
logger.cpp
Go to the documentation of this file.
1 
9 #include "logging/logger.h"
10 
11 #include "logging/config.h"
12 
13 namespace CppLogging {
14 
15 Logger::Logger() : _sink(Config::CreateLogger()._sink)
16 {
17 }
18 
19 Logger::Logger(const std::string& name) : _name(name), _sink(Config::CreateLogger(name)._sink)
20 {
21 }
22 
24 {
25  _sink = Config::CreateLogger(_name)._sink;
26 }
27 
28 } // namespace CppLogging
Logger configuration static class.
Definition: config.h:25
static Logger CreateLogger()
Create default logger.
Definition: config.cpp:37
Logger()
Initialize default logger.
Definition: logger.cpp:15
void Update()
Update the current logger sink by taking the most recent one from configuration.
Definition: logger.cpp:23
Logger configuration definition.
Logger interface definition.
C++ Logging project definitions.
Definition: appender.h:15