mirror of https://github.com/Icinga/icinga2.git
Make warning and critical log messages bold on terminals
This commit is contained in:
parent
9368ff0e03
commit
06ba435cdd
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue