summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;