Line 174... |
Line 174... |
174 |
static std::string msError;
|
174 |
static std::string msError;
|
175 |
static bool mHaveError;
|
175 |
static bool mHaveError;
|
176 |
static terrtype_t mErrType;
|
176 |
static terrtype_t mErrType;
|
177 |
static TStreamError *mCurrent;
|
177 |
static TStreamError *mCurrent;
|
178 |
static threadID_t mThreadID;
|
178 |
static threadID_t mThreadID;
|
179 |
std::string mHeadMsg;
|
179 |
// std::string mHeadMsg;
|
180 |
};
|
180 |
};
|
181 |
|
181 |
|
182 |
#define MSG_INFO(msg) { if (TStreamError::checkFilter(HLOG_INFO)) { _lock(); *TError::Current(_getThreadID())->getStream() << TError::append(HLOG_INFO) << msg << std::endl; TStreamError::resetFlags(); _unlock(); }}
|
182 |
#define MSG_INFO(msg) { if (TStreamError::checkFilter(HLOG_INFO)) { _lock(); *TError::Current(_getThreadID())->getStream() << TError::append(HLOG_INFO) << msg << std::endl; TStreamError::resetFlags(); _unlock(); }}
|
183 |
#define MSG_WARNING(msg) { if (TStreamError::checkFilter(HLOG_WARNING)) { _lock(); *TError::Current(_getThreadID())->getStream() << TError::append(HLOG_WARNING) << msg << std::endl; TStreamError::resetFlags(); _unlock(); }}
|
183 |
#define MSG_WARNING(msg) { if (TStreamError::checkFilter(HLOG_WARNING)) { _lock(); *TError::Current(_getThreadID())->getStream() << TError::append(HLOG_WARNING) << msg << std::endl; TStreamError::resetFlags(); _unlock(); }}
|
184 |
#define MSG_ERROR(msg) { if (TStreamError::checkFilter(HLOG_ERROR)) { _lock(); *TError::Current(_getThreadID())->getStream() << TError::append(HLOG_ERROR) << msg << std::endl; TStreamError::resetFlags(); _unlock(); }}
|
184 |
#define MSG_ERROR(msg) { if (TStreamError::checkFilter(HLOG_ERROR)) { _lock(); *TError::Current(_getThreadID())->getStream() << TError::append(HLOG_ERROR) << msg << std::endl; TStreamError::resetFlags(); _unlock(); }}
|