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