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);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
#include "../lib/easylogging/easylogging++.h"
|
||||
|
||||
#define INPUT_LOGGER "input_logger"
|
||||
#define INPUT_LOGGER "driver_logger"
|
||||
#define DRIVER_LOG_FILE "/var/log/flippr_driver.conf"
|
||||
|
||||
#define INPUT_MATRIX_SIZE 8
|
||||
|
||||
Reference in New Issue
Block a user