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
4c5c3c1ea6
commit
4340745c09
@ -37,11 +37,11 @@ namespace CPPCOMMON
|
|||||||
}
|
}
|
||||||
if(level >= LL_WARN)
|
if(level >= LL_WARN)
|
||||||
{
|
{
|
||||||
cerr<<string_format(_logFormat, _cStrBuf, fileName, lineNo, _logLevel[level], msg.c_str())<<"\n";
|
cerr<<string_format(_logFormat, _cStrBuf, fileName, lineNo, _logLevel[level], msg.c_str())<<endl;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
cout<<string_format(_logFormat, _cStrBuf, fileName, lineNo, _logLevel[level], msg.c_str())<<"\n";
|
cout<<string_format(_logFormat, _cStrBuf, fileName, lineNo, _logLevel[level], msg.c_str())<<endl;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
#ifndef CPPCOMMON_TYPEDEFS_H
|
#ifndef CPPCOMMON_TYPEDEFS_H
|
||||||
#define CPPCOMMON_TYPEDEFS_H
|
#define CPPCOMMON_TYPEDEFS_H
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
namespace CPPCOMMON
|
namespace CPPCOMMON
|
||||||
{
|
{
|
||||||
typedef unsigned int uint;
|
typedef unsigned int uint;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user