summaryrefslogtreecommitdiffstats
path: root/Tools/MCADefrag
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-08-12 17:05:04 +0200
committerTycho <work.tycho+git@gmail.com>2014-08-12 17:05:04 +0200
commit98443682671d0c39b19f86098f7bc900b7529b72 (patch)
treed76a93bd70740b6c718c98a47b1159eb6df2315e /Tools/MCADefrag
parentFixed Tools to work with new logging framework (diff)
downloadcuberite-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 'Tools/MCADefrag')
-rw-r--r--Tools/MCADefrag/CMakeLists.txt4
-rw-r--r--Tools/MCADefrag/MCADefrag.cpp18
2 files changed, 11 insertions, 11 deletions
diff --git a/Tools/MCADefrag/CMakeLists.txt b/Tools/MCADefrag/CMakeLists.txt
index e237b6429..42b42018b 100644
--- a/Tools/MCADefrag/CMakeLists.txt
+++ b/Tools/MCADefrag/CMakeLists.txt
@@ -39,8 +39,8 @@ set_exe_flags()
set(SHARED_SRC
../../src/StringCompression.cpp
../../src/StringUtils.cpp
- ../../src/Listeners.cpp
- ../../src/LogDispacher.cpp
+ ../../src/LoggerListeners.cpp
+ ../../src/Logger.cpp
)
set(SHARED_HDR
../../src/ByteBuffer.h
diff --git a/Tools/MCADefrag/MCADefrag.cpp b/Tools/MCADefrag/MCADefrag.cpp
index 702b04ebf..d5d233fd2 100644
--- a/Tools/MCADefrag/MCADefrag.cpp
+++ b/Tools/MCADefrag/MCADefrag.cpp
@@ -5,8 +5,8 @@
#include "Globals.h"
#include "MCADefrag.h"
-#include "LogDispacher.h"
-#include "Listeners.h"
+#include "Logger.h"
+#include "LoggerListeners.h"
#include "zlib/zlib.h"
@@ -22,12 +22,12 @@ static const Byte g_Zeroes[4096] = {0};
int main(int argc, char ** argv)
{
- 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);
- Logger::InitiateMultithreading();
+ cLogger::InitiateMultithreading();
cMCADefrag Defrag;
if (!Defrag.Init(argc, argv))
@@ -37,9 +37,9 @@ int main(int argc, char ** argv)
Defrag.Run();
- Logger::GetInstance().DetachListener(consoleLogListener);
+ cLogger::GetInstance().DetachListener(consoleLogListener);
delete consoleLogListener;
- Logger::GetInstance().DetachListener(fileLogListener);
+ cLogger::GetInstance().DetachListener(fileLogListener);
delete fileLogListener;
return 0;