1 |
//============================================================================ |
//============================================================================ |
2 |
// $Id: Logger.cpp,v 1.4 2008-03-05 11:36:27 messineo Exp $ |
// $Id: Logger.cpp,v 1.1.1.1 2008-09-23 07:20:10 mocchiut Exp $ |
3 |
// Description : |
// Description : |
4 |
//============================================================================ |
//============================================================================ |
5 |
#include "Logger.h" |
#include "Logger.h" |
13 |
mLevel=LogUtil::LOGERROR; |
mLevel=LogUtil::LOGERROR; |
14 |
mOutStream.open(mFilename.c_str(), std::ios::binary); |
mOutStream.open(mFilename.c_str(), std::ios::binary); |
15 |
} |
} |
16 |
LogUtil::LogUtil(char* filename){ |
LogUtil::LogUtil(const char* filename){ |
17 |
mtempstring=""; |
mtempstring=""; |
18 |
mFilename=std::string(filename); |
mFilename=std::string(filename); |
19 |
mLevel=LogUtil::LOGERROR; |
mLevel=LogUtil::LOGERROR; |
25 |
mLevel=level; |
mLevel=level; |
26 |
mOutStream.open(mFilename.c_str(), std::ios::binary); |
mOutStream.open(mFilename.c_str(), std::ios::binary); |
27 |
} |
} |
28 |
LogUtil::LogUtil(char* filename, logLevel level){ |
LogUtil::LogUtil(const char* filename, logLevel level){ |
29 |
mtempstring=""; |
mtempstring=""; |
30 |
mFilename=std::string(filename); |
mFilename=std::string(filename); |
31 |
mLevel=level; |
mLevel=level; |
83 |
|
|
84 |
} |
} |
85 |
|
|
86 |
void LogUtil::logAlways(char* msg){ |
void LogUtil::logAlways(const char* msg){ |
87 |
std::string tmp = msg; |
std::string tmp = msg; |
88 |
logAlways(tmp); |
logAlways(tmp); |
89 |
} |
} |
90 |
|
|
91 |
void LogUtil::logError(char* msg){ |
void LogUtil::logError(const char* msg){ |
92 |
std::string tmp = msg; |
std::string tmp = msg; |
93 |
logError(tmp); |
logError(tmp); |
94 |
} |
} |
95 |
void LogUtil::logWarning(char* msg){ |
void LogUtil::logWarning(const char* msg){ |
96 |
std::string tmp = msg; |
std::string tmp = msg; |
97 |
logWarning(tmp); |
logWarning(tmp); |
98 |
} |
} |
99 |
void LogUtil::logInfo(char* msg){ |
void LogUtil::logInfo(const char* msg){ |
100 |
std::string tmp = msg; |
std::string tmp = msg; |
101 |
logInfo(tmp); |
logInfo(tmp); |
102 |
} |
} |
103 |
|
|
104 |
void LogUtil::logAll(char* msg){ |
void LogUtil::logAll(const char* msg){ |
105 |
std::string tmp = msg; |
std::string tmp = msg; |
106 |
logAll(tmp); |
logAll(tmp); |
107 |
} |
} |