summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-09 11:43:25 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-09 11:43:25 +0000
commitdb1c78986c8055f59b9bdf98a883dfbf3f4db6b9 (patch)
treec3f5e4e6a05cc8aa88e0200edf6305f8a77de1b8
parent3897856fb7d887883f7b3c61143ce0b256c00ff8 (diff)
Instantiate log manager
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8857 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--include/inspircd.h4
-rw-r--r--src/inspircd.cpp3
2 files changed, 7 insertions, 0 deletions
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;