update logger.cpp

This commit is contained in:
gwdwyy 2013-07-25 11:04:15 +08:00
parent 4c5c3c1ea6
commit 4340745c09
2 changed files with 5 additions and 2 deletions

View File

@ -37,11 +37,11 @@ namespace CPPCOMMON
}
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
{
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;
}

View File

@ -5,6 +5,9 @@
#ifndef CPPCOMMON_TYPEDEFS_H
#define CPPCOMMON_TYPEDEFS_H
#include <stdint.h>
#include <vector>
namespace CPPCOMMON
{
typedef unsigned int uint;