Improved temporary debug output

This commit is contained in:
Ingo Ruhnke 2011-05-24 04:47:17 +02:00
parent 44675a1d4b
commit d42f78d060
2 changed files with 4 additions and 4 deletions

View file

@ -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;

View file

@ -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;