mirror of
https://github.com/yanyiwu/cppjieba.git
synced 2025-07-18 00:00:12 +08:00
update logger.cpp
This commit is contained in:
parent
ddb55f7e8e
commit
4c5c3c1ea6
@ -35,7 +35,14 @@ namespace CPPCOMMON
|
|||||||
cerr<<"strftime failed."<<endl;
|
cerr<<"strftime failed."<<endl;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
cout<<string_format(_logFormat, _cStrBuf, fileName, lineNo, _logLevel[level], msg.c_str())<<"\n";
|
if(level >= LL_WARN)
|
||||||
|
{
|
||||||
|
cerr<<string_format(_logFormat, _cStrBuf, fileName, lineNo, _logLevel[level], msg.c_str())<<"\n";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
cout<<string_format(_logFormat, _cStrBuf, fileName, lineNo, _logLevel[level], msg.c_str())<<"\n";
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user