summaryrefslogtreecommitdiffstats
path: root/src/modules/FileLogger
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/FileLogger')
-rw-r--r--src/modules/FileLogger/Module.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/FileLogger/Module.cpp b/src/modules/FileLogger/Module.cpp
index 88d475c..d000c8b 100644
--- a/src/modules/FileLogger/Module.cpp
+++ b/src/modules/FileLogger/Module.cpp
@@ -49,7 +49,10 @@ bool Module::handleConfigEntry(const Core::ConfigEntry &entry, bool handled) {
else if(entry[1].getKey().matches("Level")) {
if(entry[2].empty()) {
try {
- lastLogger->setLevel(Core::LogManager::parseLevel(entry[1][0]));
+ if(boost::algorithm::to_lower_copy(static_cast<std::string>(entry[1][0])) == "remote")
+ lastLogger->setRemoteLevel(Core::LogManager::parseLevel(entry[1][1]));
+ else
+ 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].c_str());