added config.h
This commit is contained in:
@@ -13,12 +13,16 @@
|
|||||||
#include "Detector.h"
|
#include "Detector.h"
|
||||||
|
|
||||||
#include "../utilities/InputGPIOInterface.h"
|
#include "../utilities/InputGPIOInterface.h"
|
||||||
|
#include "../utilities/config.h"
|
||||||
#include "../lib/json/json.hpp"
|
#include "../lib/json/json.hpp"
|
||||||
#include "../lib/easylogging/easylogging++.h"
|
#include "../lib/easylogging/easylogging++.h"
|
||||||
#include "EventNotifier.h"
|
#include "EventNotifier.h"
|
||||||
|
|
||||||
using namespace nlohmann;
|
using namespace nlohmann;
|
||||||
|
|
||||||
|
|
||||||
|
INITIALIZE_EASYLOGGINGPP
|
||||||
|
|
||||||
namespace Input
|
namespace Input
|
||||||
{
|
{
|
||||||
class InputFactory
|
class InputFactory
|
||||||
@@ -57,7 +61,13 @@ private:
|
|||||||
|
|
||||||
static void ConfigureLogger()
|
static void ConfigureLogger()
|
||||||
{
|
{
|
||||||
|
el::Loggers::getLogger(INPUT_LOGGER);
|
||||||
|
|
||||||
|
//TODO may configure?
|
||||||
|
el::Configurations defaultConf;
|
||||||
|
defaultConf.setToDefault();
|
||||||
|
|
||||||
|
el::Loggers::reconfigureLogger(INPUT_LOGGER,defaultConf);
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
8
FlippR-Driver/src/utilities/config.h
Normal file
8
FlippR-Driver/src/utilities/config.h
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* BlockingQueue.hpp
|
||||||
|
*
|
||||||
|
* Created on: May 17, 2018
|
||||||
|
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert, Rafael Vinci, Dr. Franca Rupprecht
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define INPUT_LOGGER "input_logger"
|
||||||
Reference in New Issue
Block a user