summaryrefslogtreecommitdiff
path: root/include/filelogger.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/filelogger.h')
-rw-r--r--include/filelogger.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/filelogger.h b/include/filelogger.h
index 77ca6f886..8395f1c96 100644
--- a/include/filelogger.h
+++ b/include/filelogger.h
@@ -88,5 +88,17 @@ class CoreExport FileLogger : public EventHandler
virtual ~FileLogger();
};
+class CoreExport FileLogStream : public LogStream
+{
+ private:
+ FileLogger *f;
+ public:
+ FileLogStream(InspIRCd *Instance, FILE *f, const std::string &type) : LogStream(Instance, type)
+ {
+ this->f = new FileLogger(Instance, f);
+ }
+
+ virtual void OnLog(int loglevel, const std::string &msg);
+};
#endif