summaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authoraquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-10 20:07:30 +0000
committeraquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-10 20:07:30 +0000
commit4965a1d6697565b1a72de31deaccfd93180bd403 (patch)
treedee80d010761a347665556b37b20d882556decec /src/helperfuncs.cpp
parentef9ab2301d8ee84dc9b68bcede435bc540d7243c (diff)
Code for loading <log method=file> tags from config, but this still needs to be fit into the config reader stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8885 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 8ae88e752..d325b40aa 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -324,7 +324,9 @@ bool InspIRCd::OpenLog(char**, int)
return false;
}
- FileLogStream *f = new FileLogStream(this, Config->LogLevel, Config->log_file);
+ FileWriter* fw = new FileWriter(this, Config->log_file);
+ FileLogStream *f = new FileLogStream(this, Config->LogLevel, fw);
+
this->Logs->AddLogType("*", f);
return true;
}