summaryrefslogtreecommitdiffstats
path: root/src/modules/FileLogger/Module.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/FileLogger/Module.cpp')
-rw-r--r--src/modules/FileLogger/Module.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/FileLogger/Module.cpp b/src/modules/FileLogger/Module.cpp
index 663389f..d8a302c 100644
--- a/src/modules/FileLogger/Module.cpp
+++ b/src/modules/FileLogger/Module.cpp
@@ -34,7 +34,7 @@ bool Module::handleConfigEntry(const Core::ConfigEntry &entry, bool handled) {
if(entry[0][0].matches("File")) {
if(entry[1].isEmpty()) {
if(!entry[0][1].isEmpty()) {
- lastLogger.reset(new FileLogger(entry[0][1].extract()));
+ lastLogger.reset(new FileLogger(entry[0][1].toLocale()));
loggers.insert(lastLogger);
application->getLogManager()->registerLogger(lastLogger);
@@ -55,7 +55,7 @@ bool Module::handleConfigEntry(const Core::ConfigEntry &entry, bool handled) {
lastLogger->setLevel(Core::LogManager::parseLevel(entry[1][0]));
}
catch(Core::Exception e) {
- application->logf(Core::Logger::LOG_WARNING, "Unknown log level '%s'.", entry[1][0].extract().c_str());
+ application->logf(Core::Logger::LOG_WARNING, "Unknown log level '%s'.", entry[1][0].toLocale().c_str());
}
return true;