diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-09 20:15:09 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-09 20:15:09 +0000 |
commit | bfff1d9d93dccb9f0080b84d3933d47f2a6a1f6c (patch) | |
tree | 77f15e70f4cb3f1c397a0b981e208ceec622dd7c /include | |
parent | 1af394d68bd6eb328a561acd9468fe272842c409 (diff) |
Implement LogManager::CloseLogs() to give logstreams a chance to clean up on rehash or exit.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8863 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/inspircd.h | 4 | ||||
-rw-r--r-- | include/logger.h | 1 |
2 files changed, 1 insertions, 4 deletions
diff --git a/include/inspircd.h b/include/inspircd.h index 5f57619d5..d1e6f4005 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -558,10 +558,6 @@ class CoreExport InspIRCd : public classbase */ bool OpenLog(char** argv, int argc); - /** Close the currently open log file - */ - void CloseLog(); - /** Return true if a channel name is valid * @param chname A channel name to verify * @return True if the name is valid diff --git a/include/logger.h b/include/logger.h index d22b4203b..70407422f 100644 --- a/include/logger.h +++ b/include/logger.h @@ -41,6 +41,7 @@ class CoreExport LogManager : public classbase ServerInstance = Instance; } + void CloseLogs(); bool AddLogType(const std::string &type, LogStream *l); bool DelLogType(const std::string &type, LogStream *l); void Log(const std::string &type, int loglevel, const std::string &msg); |