Line 79... |
Line 79... |
79 |
static void decIndent();
|
79 |
static void decIndent();
|
80 |
static int getIndent() { return mIndent; }
|
80 |
static int getIndent() { return mIndent; }
|
81 |
static std::ostream *getStream();
|
81 |
static std::ostream *getStream();
|
82 |
static std::string getTime();
|
82 |
static std::string getTime();
|
83 |
static std::ostream *resetFlags(std::ostream *os);
|
83 |
static std::ostream *resetFlags(std::ostream *os);
|
- |
|
84 |
static void resetFlags();
|
84 |
static bool isStreamValid();
|
85 |
static bool isStreamValid();
|
85 |
static bool isStreamValid(std::ostream& os);
|
86 |
static bool isStreamValid(std::ostream& os);
|
86 |
|
87 |
|
87 |
private:
|
88 |
private:
|
88 |
static unsigned int _getLevel(const std::string& slv);
|
89 |
static unsigned int _getLevel(const std::string& slv);
|
Line 146... |
Line 147... |
146 |
static terrtype_t mErrType;
|
147 |
static terrtype_t mErrType;
|
147 |
static TStreamError *mCurrent;
|
148 |
static TStreamError *mCurrent;
|
148 |
std::string mHeadMsg;
|
149 |
std::string mHeadMsg;
|
149 |
};
|
150 |
};
|
150 |
|
151 |
|
151 |
#define MSG_INFO(msg) { if (TStreamError::checkFilter(HLOG_INFO)) { *TError::Current()->getStream() << TError::append(HLOG_INFO) << msg << std::endl; }}
|
152 |
#define MSG_INFO(msg) { if (TStreamError::checkFilter(HLOG_INFO)) { *TError::Current()->getStream() << TError::append(HLOG_INFO) << msg << std::endl; TStreamError::resetFlags(); }}
|
152 |
#define MSG_WARNING(msg) { if (TStreamError::checkFilter(HLOG_WARNING)) { *TError::Current()->getStream() << TError::append(HLOG_WARNING) << msg << std::endl; }}
|
153 |
#define MSG_WARNING(msg) { if (TStreamError::checkFilter(HLOG_WARNING)) { *TError::Current()->getStream() << TError::append(HLOG_WARNING) << msg << std::endl; TStreamError::resetFlags(); }}
|
153 |
#define MSG_ERROR(msg) { if (TStreamError::checkFilter(HLOG_ERROR)) { *TError::Current()->getStream() << TError::append(HLOG_ERROR) << msg << std::endl; }}
|
154 |
#define MSG_ERROR(msg) { if (TStreamError::checkFilter(HLOG_ERROR)) { *TError::Current()->getStream() << TError::append(HLOG_ERROR) << msg << std::endl; TStreamError::resetFlags(); }}
|
154 |
#define MSG_TRACE(msg) { if (TStreamError::checkFilter(HLOG_TRACE)) { *TError::Current()->getStream() << TError::append(HLOG_TRACE) << msg << std::endl; }}
|
155 |
#define MSG_TRACE(msg) { if (TStreamError::checkFilter(HLOG_TRACE)) { *TError::Current()->getStream() << TError::append(HLOG_TRACE) << msg << std::endl; TStreamError::resetFlags(); }}
|
155 |
#define MSG_DEBUG(msg) { if (TStreamError::checkFilter(HLOG_DEBUG)) { *TError::Current()->getStream() << TError::append(HLOG_DEBUG) << msg << std::endl; }}
|
156 |
#define MSG_DEBUG(msg) { if (TStreamError::checkFilter(HLOG_DEBUG)) { *TError::Current()->getStream() << TError::append(HLOG_DEBUG) << msg << std::endl; TStreamError::resetFlags(); }}
|
156 |
|
157 |
|
157 |
#define MSG_PROTOCOL(msg) {if (TStreamError::checkFilter(HLOG_PROTOCOL)) { *TError::Current()->getStream() << TError::append(HLOG_PROTOCOL) << msg << std::endl; }}
|
158 |
#define MSG_PROTOCOL(msg) {if (TStreamError::checkFilter(HLOG_PROTOCOL)) { *TError::Current()->getStream() << TError::append(HLOG_PROTOCOL) << msg << std::endl; TStreamError::resetFlags(); }}
|
158 |
|
159 |
|
159 |
#define DECL_TRACER(msg) TTracer _hidden_tracer(msg, __LINE__, (char *)__FILE__);
|
160 |
#define DECL_TRACER(msg) TTracer _hidden_tracer(msg, __LINE__, (char *)__FILE__);
|
160 |
|
161 |
|
161 |
#define IS_LOG_INFO() TStreamError::checkFilter(HLOG_INFO)
|
162 |
#define IS_LOG_INFO() TStreamError::checkFilter(HLOG_INFO)
|
162 |
#define IS_LOG_WARNING() TStreamError::checkFilter(HLOG_WARNING)
|
163 |
#define IS_LOG_WARNING() TStreamError::checkFilter(HLOG_WARNING)
|