mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Refactor logging logic into new CLogger class
This commit is contained in:
@ -70,7 +70,7 @@ void LuaManager::ReportErrors(lua_State* L, const std::wstring& file)
|
||||
|
||||
std::wstring str(file, file.find_last_of(L'\\') + 1);
|
||||
str += StringUtil::Widen(error);
|
||||
LogWithArgs(LOG_ERROR, L"Script: %s", str.c_str());
|
||||
CLogger_ErrorF(L"Script: %s", str.c_str());
|
||||
}
|
||||
|
||||
void LuaManager::PushWide(lua_State* L, const WCHAR* str)
|
||||
|
@ -18,7 +18,8 @@
|
||||
|
||||
#include "../../StdAfx.h"
|
||||
#include "../LuaManager.h"
|
||||
#include "../../Litestep.h"
|
||||
#include "../../Logger.h"
|
||||
#include "../../../Common/StringUtil.h"
|
||||
|
||||
static int Print(lua_State* L)
|
||||
{
|
||||
@ -53,7 +54,7 @@ static int Print(lua_State* L)
|
||||
lua_pop(L, 1);
|
||||
}
|
||||
|
||||
Log(LOG_DEBUG, StringUtil::Widen(message).c_str());
|
||||
CLogger::Debug(StringUtil::Widen(message).c_str());
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user