}
-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;
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)