From f63580a4eaa8d079200065dffa4d6a33b5577427 Mon Sep 17 00:00:00 2001 From: aquanight Date: Sun, 10 Feb 2008 14:20:58 +0000 Subject: Per-logstream loglevels. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8871 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/filelogger.h | 2 +- include/logger.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/filelogger.h b/include/filelogger.h index 333a0236e..a2d63a0d9 100644 --- a/include/filelogger.h +++ b/include/filelogger.h @@ -93,7 +93,7 @@ class CoreExport FileLogStream : public LogStream private: FileLogger *f; public: - FileLogStream(InspIRCd *Instance, FILE *f) : LogStream(Instance) + FileLogStream(InspIRCd *Instance, int loglevel, FILE *f) : LogStream(Instance, loglevel) { this->f = new FileLogger(Instance, f); } diff --git a/include/logger.h b/include/logger.h index 492f6c20a..8f030b53b 100644 --- a/include/logger.h +++ b/include/logger.h @@ -18,8 +18,9 @@ class CoreExport LogStream : public classbase { protected: InspIRCd *ServerInstance; + int loglvl; public: - LogStream(InspIRCd *Instance) + LogStream(InspIRCd *Instance, int loglevel) : loglvl(loglevel) { this->ServerInstance = Instance; } -- cgit v1.2.3