Make warning and critical log messages bold on terminals

This commit is contained in:
Gunnar Beutner 2014-10-20 13:15:37 +02:00
parent 9368ff0e03
commit 06ba435cdd
1 changed files with 3 additions and 3 deletions

View File

@ -100,7 +100,7 @@ void StreamLogger::ProcessLogEntry(std::ostream& stream, const LogEntry& entry)
stream << "[" << timestamp << "] "; stream << "[" << timestamp << "] ";
ConsoleColor color; int color;
switch (entry.Severity) { switch (entry.Severity) {
case LogDebug: case LogDebug:
@ -113,10 +113,10 @@ void StreamLogger::ProcessLogEntry(std::ostream& stream, const LogEntry& entry)
color = Console_ForegroundGreen; color = Console_ForegroundGreen;
break; break;
case LogWarning: case LogWarning:
color = Console_ForegroundYellow; color = Console_ForegroundYellow | Console_Bold;
break; break;
case LogCritical: case LogCritical:
color = Console_ForegroundRed; color = Console_ForegroundRed | Console_Bold;
break; break;
default: default:
return; return;