From db1c78986c8055f59b9bdf98a883dfbf3f4db6b9 Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 9 Feb 2008 11:43:25 +0000 Subject: Instantiate log manager git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8857 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/inspircd.h | 4 ++++ src/inspircd.cpp | 3 +++ 2 files changed, 7 insertions(+) diff --git a/include/inspircd.h b/include/inspircd.h index cc474dbfb..e8d5c9b8e 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -389,6 +389,10 @@ class CoreExport InspIRCd : public classbase /** Socket engine, handles socket activity events */ SocketEngine* SE; + + /** LogManager handles logging. + */ + LogManager *Logs; /** ModuleManager contains everything related to loading/unloading * modules. diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 15ab63776..29457ec97 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -303,6 +303,9 @@ InspIRCd::InspIRCd(int argc, char** argv) memset(&server, 0, sizeof(server)); memset(&client, 0, sizeof(client)); + // This must be created first, so other parts of Insp can use it while starting up + this->Logs = new LogManager(this); + SocketEngineFactory* SEF = new SocketEngineFactory(); SE = SEF->Create(this); delete SEF; -- cgit v1.2.3