seperated logger & mocked destructors
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
|
||||
#include "InputDriverFactory.h"
|
||||
|
||||
#include "../utilities/LoggerFactory.hpp"
|
||||
|
||||
#include "EventNotifier.h"
|
||||
|
||||
using namespace nlohmann;
|
||||
@@ -66,13 +68,5 @@ std::map<char, Event> InputDriverFactory::create_input_events(json matrix_config
|
||||
|
||||
void InputDriverFactory::ConfigureLogger()
|
||||
{
|
||||
el::Loggers::getLogger(INPUT_LOGGER);
|
||||
|
||||
//TODO may configure?
|
||||
el::Configurations conf;
|
||||
conf.setToDefault();
|
||||
conf.set(el::Level::Global, el::ConfigurationType::Filename, DRIVER_LOG_FILE);
|
||||
conf.set(el::Level::Global, el::ConfigurationType::Format, "%datetime [%level] [%func] : %msg");
|
||||
|
||||
el::Loggers::reconfigureLogger(INPUT_LOGGER, conf);
|
||||
LoggerFactory::CreateInputLogger();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user