mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 08:04:14 +02:00
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 << "] ";
|
||||
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user