WIP. Added console/file logger

This commit is contained in:
emeric
2014-08-23 15:34:35 +02:00
parent d018922847
commit 5a66ff10af
6 changed files with 40 additions and 3 deletions
+7
View File
@@ -5,6 +5,13 @@ ConfigReader::ConfigReader(boost::filesystem::path p)
_config.readFile(p.string().c_str());
}
void
ConfigReader::getLoggerConfig(Logger::Config& config)
{
config.enableFileLogging = _config.lookupValue("main.logger.file", config.logPath);
config.enableConsoleLogging = _config.lookup("main.logger.console");
}
void
ConfigReader::getUserInterfaceConfig(Service::UserInterfaceService::Config& config)
{