33 lines
741 B
C++
33 lines
741 B
C++
/*
|
|
* LoggerFactory.hpp
|
|
*
|
|
* Created on: Jun 19, 2018
|
|
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert, Rafael Vinci, Dr. Franca Rupprecht
|
|
*/
|
|
|
|
#ifndef SRC_UTILITIES_LOGGERFACTORY_HPP_
|
|
#define SRC_UTILITIES_LOGGERFACTORY_HPP_
|
|
|
|
#include "config.h"
|
|
|
|
class LoggerFactory
|
|
{
|
|
public:
|
|
static void CreateInputLogger()
|
|
{
|
|
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);
|
|
}
|
|
};
|
|
|
|
|
|
|
|
#endif /* SRC_UTILITIES_LOGGERFACTORY_HPP_ */
|