used "enum class" instead of "enum" in logger

This commit is contained in:
2023-01-16 19:10:49 +08:00
parent d6917e9339
commit 47f2c4c71a
3 changed files with 17 additions and 17 deletions

View File

@@ -73,7 +73,7 @@ namespace hgl
OS_TEXT("Current program: ") + cur_program.c_str() + OS_TEXT("\n")+
OS_TEXT("Current path: ") + cur_path.c_str() + OS_TEXT("\n");
WriteLog(llLog,str.c_str(),str.Length());
WriteLog(LogLevel::Log,str.c_str(),str.Length());
return(true);
}
@@ -207,8 +207,8 @@ namespace hgl
*/
bool InitLogger(const OSString &app_name)
{
AddLogger(CreateLoggerConsole(llLog));
AddLogger(CreateLoggerFile(app_name,llLog));
AddLogger(CreateLoggerConsole(LogLevel::Log));
AddLogger(CreateLoggerFile(app_name,LogLevel::Log));
return InitLog();
}