Instantiate log manager

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8857 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
w00t 2008-02-09 11:43:25 +00:00
parent 3897856fb7
commit db1c78986c
2 changed files with 7 additions and 0 deletions

View File

@ -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.

View File

@ -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;