diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-08-10 20:34:11 +0200 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-08-10 20:34:11 +0200 |
commit | 806d0936dc94f235858ffe1772a6215f86c5d000 (patch) | |
tree | 38a84d8de02dc7da20af969f88c722abbea13300 /src/Bindings | |
parent | Merge pull request #1291 from mc-server/RedstoneCleanUp (diff) | |
download | cuberite-806d0936dc94f235858ffe1772a6215f86c5d000.tar cuberite-806d0936dc94f235858ffe1772a6215f86c5d000.tar.gz cuberite-806d0936dc94f235858ffe1772a6215f86c5d000.tar.bz2 cuberite-806d0936dc94f235858ffe1772a6215f86c5d000.tar.lz cuberite-806d0936dc94f235858ffe1772a6215f86c5d000.tar.xz cuberite-806d0936dc94f235858ffe1772a6215f86c5d000.tar.zst cuberite-806d0936dc94f235858ffe1772a6215f86c5d000.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Bindings/LuaFunctions.h | 2 | ||||
-rw-r--r-- | src/Bindings/ManualBindings.cpp | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/Bindings/LuaFunctions.h b/src/Bindings/LuaFunctions.h index 2ea37d7a4..6a645ed53 100644 --- a/src/Bindings/LuaFunctions.h +++ b/src/Bindings/LuaFunctions.h @@ -1,6 +1,6 @@ #pragma once -#include "../MCLogger.h" +#include "LogDispacher.h" #include <time.h> // tolua_begin diff --git a/src/Bindings/ManualBindings.cpp b/src/Bindings/ManualBindings.cpp index 9ba1501c5..d792cd0ee 100644 --- a/src/Bindings/ManualBindings.cpp +++ b/src/Bindings/ManualBindings.cpp @@ -168,7 +168,7 @@ static AString GetLogMessage(lua_State * tolua_S) static int tolua_LOG(lua_State * tolua_S) { // If the param is a cCompositeChat, read the log level from it: - cMCLogger::eLogLevel LogLevel = cMCLogger::llRegular; + Logger::eLogLevel LogLevel = Logger::llRegular; tolua_Error err; if (tolua_isusertype(tolua_S, 1, "cCompositeChat", false, &err)) { @@ -176,7 +176,7 @@ static int tolua_LOG(lua_State * tolua_S) } // Log the message: - cMCLogger::GetInstance()->LogSimple(GetLogMessage(tolua_S).c_str(), LogLevel); + Logger::GetInstance().LogSimple(GetLogMessage(tolua_S).c_str(), LogLevel); return 0; } @@ -186,7 +186,7 @@ static int tolua_LOG(lua_State * tolua_S) static int tolua_LOGINFO(lua_State * tolua_S) { - cMCLogger::GetInstance()->LogSimple(GetLogMessage(tolua_S).c_str(), cMCLogger::llInfo); + Logger::GetInstance().LogSimple(GetLogMessage(tolua_S).c_str(), Logger::llInfo); return 0; } @@ -196,7 +196,7 @@ static int tolua_LOGINFO(lua_State * tolua_S) static int tolua_LOGWARN(lua_State * tolua_S) { - cMCLogger::GetInstance()->LogSimple(GetLogMessage(tolua_S).c_str(), cMCLogger::llWarning); + Logger::GetInstance().LogSimple(GetLogMessage(tolua_S).c_str(), Logger::llWarning); return 0; } @@ -206,7 +206,7 @@ static int tolua_LOGWARN(lua_State * tolua_S) static int tolua_LOGERROR(lua_State * tolua_S) { - cMCLogger::GetInstance()->LogSimple(GetLogMessage(tolua_S).c_str(), cMCLogger::llError); + Logger::GetInstance().LogSimple(GetLogMessage(tolua_S).c_str(), Logger::llError); return 0; } |