From 85c914d0087458009ec74bbfdd4f7d8345aa1d2c Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 31 Aug 2009 23:10:27 +0200 Subject: =?UTF-8?q?Logger:=20Unterst=C3=BCtzung=20f=C3=BCr=20RemoteLogger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/FileLogger/Module.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/modules') 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(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()); -- cgit v1.2.3