]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/filelogger.cpp
Per-logstream loglevels.
[user/henk/code/inspircd.git] / src / filelogger.cpp
index 0e50f628e9877743cc639e81e8e8cc2e0bc5d89b..5c275752062fa7188a21c53384db775ba9c63909 100644 (file)
@@ -102,7 +102,7 @@ FileLogger::~FileLogger()
 }
 
 
-void FileLogStream::OnLog(int loglevel, const std::string &text)
+void FileLogStream::OnLog(int loglevel, const std::string &type, const std::string &text)
 {
        static char TIMESTR[26];
        static time_t LAST = 0;
@@ -112,7 +112,7 @@ void FileLogStream::OnLog(int loglevel, const std::string &text)
                return;
 
        /* If we were given -debug we output all messages, regardless of configured loglevel */
-       if ((loglevel < ServerInstance->Config->LogLevel) && !ServerInstance->Config->forcedebug)
+       if ((loglevel < this->loglvl) && !ServerInstance->Config->forcedebug)
                return;
 
        if (ServerInstance->Time() != LAST)