fixed Log that they didn't use Logger system.
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user