summaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-08-31 23:10:27 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-08-31 23:10:27 +0200
commit85c914d0087458009ec74bbfdd4f7d8345aa1d2c (patch)
treee0bd366a27e1d2e01570024cba94eeb2dc07c350 /src/modules
parent7890312d0a850ffc5be20d078d7e8f2d148dca3e (diff)
downloadmad-85c914d0087458009ec74bbfdd4f7d8345aa1d2c.tar
mad-85c914d0087458009ec74bbfdd4f7d8345aa1d2c.zip
Logger: Unterstützung für RemoteLogger
Diffstat (limited to 'src/modules')
-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());