diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-08-12 17:05:04 +0200 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-08-12 17:05:04 +0200 |
commit | 98443682671d0c39b19f86098f7bc900b7529b72 (patch) | |
tree | d76a93bd70740b6c718c98a47b1159eb6df2315e /src/Root.cpp | |
parent | Fixed Tools to work with new logging framework (diff) | |
download | cuberite-98443682671d0c39b19f86098f7bc900b7529b72.tar cuberite-98443682671d0c39b19f86098f7bc900b7529b72.tar.gz cuberite-98443682671d0c39b19f86098f7bc900b7529b72.tar.bz2 cuberite-98443682671d0c39b19f86098f7bc900b7529b72.tar.lz cuberite-98443682671d0c39b19f86098f7bc900b7529b72.tar.xz cuberite-98443682671d0c39b19f86098f7bc900b7529b72.tar.zst cuberite-98443682671d0c39b19f86098f7bc900b7529b72.zip |
Diffstat (limited to 'src/Root.cpp')
-rw-r--r-- | src/Root.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Root.cpp b/src/Root.cpp index 72048b631..ee0d9b835 100644 --- a/src/Root.cpp +++ b/src/Root.cpp @@ -18,7 +18,7 @@ #include "CommandOutput.h" #include "DeadlockDetect.h" #include "OSSupport/Timer.h" -#include "Listeners.h" +#include "LoggerListeners.h" #include "inifile/iniFile.h" @@ -106,10 +106,10 @@ void cRoot::Start(void) EnableMenuItem(hmenu, SC_CLOSE, MF_GRAYED); // Disable close button when starting up; it causes problems with our CTRL-CLOSE handling #endif - Logger::cLoggerListener * consoleLogListener = Logger::MakeConsoleListener(); - Logger::cLoggerListener * fileLogListener = new Logger::cFileListener(); - Logger::GetInstance().AttachListener(consoleLogListener); - Logger::GetInstance().AttachListener(fileLogListener); + cLogger::cListener * consoleLogListener = MakeConsoleListener(); + cLogger::cListener * fileLogListener = new cFileListener(); + cLogger::GetInstance().AttachListener(consoleLogListener); + cLogger::GetInstance().AttachListener(fileLogListener); LOG("--- Started Log ---\n"); @@ -257,9 +257,9 @@ void cRoot::Start(void) LOG("--- Stopped Log ---"); - Logger::GetInstance().DetachListener(consoleLogListener); + cLogger::GetInstance().DetachListener(consoleLogListener); delete consoleLogListener; - Logger::GetInstance().DetachListener(fileLogListener); + cLogger::GetInstance().DetachListener(fileLogListener); delete fileLogListener; } |