seperated logger & mocked destructors

This commit is contained in:
Jonas Zeunert
2018-06-19 15:01:52 +02:00
parent cbf1b304a1
commit 17f05a0290
3 changed files with 50 additions and 13 deletions

View File

@@ -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();
}