modify logger.cpp/h

This commit is contained in:
gwdwyy 2013-08-06 16:44:57 +08:00
parent 1e0872c422
commit 15a06fad9b
2 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,11 @@ namespace CPPCOMMON
{
}
bool Logger::Logging(uint level, const string& msg, const char * fileName, int lineNo)
{
return Logging(level, msg.c_str(), fileName, lineNo);
}
bool Logger::Logging(uint level, const char * msg, const char* fileName, int lineNo)
{
if(level > LL_FATAL)

View File

@ -40,6 +40,7 @@ namespace CPPCOMMON
Logger();
~Logger();
public:
bool Logging(uint level, const string& msg, const char* fileName, int lineNo);
bool Logging(uint level, const char * msg, const char* fileName, int lineNo);
private:
char _cStrBuf[CSTR_BUFFER_SIZE];