configurated logging :see_no_evils
This commit is contained in:
@@ -64,10 +64,12 @@ private:
|
||||
el::Loggers::getLogger(INPUT_LOGGER);
|
||||
|
||||
//TODO may configure?
|
||||
el::Configurations defaultConf;
|
||||
defaultConf.setToDefault();
|
||||
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,defaultConf);
|
||||
el::Loggers::reconfigureLogger(INPUT_LOGGER, conf);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user