summaryrefslogtreecommitdiff
path: root/project2/common/environment.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'project2/common/environment.cpp')
-rw-r--r--project2/common/environment.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/project2/common/environment.cpp b/project2/common/environment.cpp
index 9d79ca0..811ab22 100644
--- a/project2/common/environment.cpp
+++ b/project2/common/environment.cpp
@@ -1,7 +1,7 @@
#include <pch.hpp>
#include "environment.h"
#include "optionsSource.h"
-#include "loggers.h"
+#include "logger.h"
#include "scriptLoader.h"
#include <stdio.h>
#include <fstream>
@@ -86,10 +86,10 @@ Environment::init()
}
Logger()->clear();
if (clLevel >= 0) {
- Logger()->addLogger(new ConsoleLogDriver(stderr, clLevel, false));
+ Logger()->addLogger(LogDriverLoader::createNew("console", slLevel, std::string()));
}
if (slLevel >= 0) {
- Logger()->addLogger(new SyslogLogDriver(getScriptName().c_str(), slLevel));
+ Logger()->addLogger(LogDriverLoader::createNew("syslog", slLevel, getScriptName()));
}
Logger()->message(LOG_DEBUG, "Loaded configuration");
}