fixed Log that they didn't use Logger system.

This commit is contained in:
2022-06-14 17:57:57 +08:00
parent d92f08d3c3
commit 58c8f1db90

View File

@@ -24,14 +24,19 @@ namespace hgl
llLog //记录一下 llLog //记录一下
};//enum LogLevel };//enum LogLevel
bool InitLogger(const OSString &app_name);
void Log(LogLevel level,const u16char *str,int size);
void Log(LogLevel level,const u8char *str,int size);
inline void Log(LogLevel ll,const UTF16String &str) inline void Log(LogLevel ll,const UTF16String &str)
{ {
std::wcout<<str.c_str()<<std::endl; Log(ll,str.c_str(),str.Length());
} }
inline void Log(LogLevel ll,const UTF8String &str) inline void Log(LogLevel ll,const UTF8String &str)
{ {
std::cout<<(char *)str.c_str()<<std::endl; Log(ll,str.c_str(),str.Length());
} }
#ifdef HGL_SUPPORT_CHAR8_T #ifdef HGL_SUPPORT_CHAR8_T