Improved temporary debug output
This commit is contained in:
parent
44675a1d4b
commit
d42f78d060
2 changed files with 4 additions and 4 deletions
|
@ -75,7 +75,7 @@ Logger::append_unchecked(LogLevel level, const std::string& str)
|
|||
case kWarning: std::cout << "[WARN] "; break;
|
||||
case kInfo: std::cout << "[INFO] "; break;
|
||||
case kDebug: std::cout << "[DEBUG] "; break;
|
||||
case kTmp: std::cout << "[TEMP] "; break;
|
||||
case kTemp: std::cout << "[TEMP] "; break;
|
||||
}
|
||||
|
||||
std::cout << str << std::endl;
|
||||
|
|
|
@ -45,7 +45,7 @@ public:
|
|||
kDebug,
|
||||
|
||||
/** temporary extra verbose debugging messages */
|
||||
kTmp
|
||||
kTemp
|
||||
};
|
||||
|
||||
private:
|
||||
|
@ -104,7 +104,7 @@ public:
|
|||
#define log_tmp_trace() do { \
|
||||
std::ostringstream x6ac1c382; \
|
||||
x6ac1c382 << log_pretty_print(__PRETTY_FUNCTION__); \
|
||||
g_logger.append_unchecked(Logger::kDebug, x6ac1c382.str()); \
|
||||
g_logger.append_unchecked(Logger::kTemp, x6ac1c382.str()); \
|
||||
} while(false)
|
||||
|
||||
/** Write an debug message, while ignoring the log level. Use for
|
||||
|
@ -113,7 +113,7 @@ public:
|
|||
#define log_tmp(text) do { \
|
||||
std::ostringstream x6ac1c382; \
|
||||
x6ac1c382 << log_pretty_print(__PRETTY_FUNCTION__) << ": " << text; \
|
||||
g_logger.append_unchecked(Logger::kDebug, x6ac1c382.str()); \
|
||||
g_logger.append_unchecked(Logger::kTemp, x6ac1c382.str()); \
|
||||
} while(false)
|
||||
|
||||
extern Logger g_logger;
|
||||
|
|
Loading…
Add table
Reference in a new issue