Add more colors to output

This commit is contained in:
Stefan Risberg 2024-11-01 18:12:06 +01:00
parent a7bfc69047
commit a6d4703bcd
Signed by: steffenomak
GPG Key ID: B60C24EF642AE8B0

View File

@ -85,7 +85,8 @@ fmtMessage :: WithSeverity LogData -> LogData
fmtMessage (WithSeverity txt sev) = "[" <> ls (justifyLeft 7 ' ' (colorSev sev)) <> "] - " <> txt
where
colorSev :: Severity -> Text
colorSev W = colorNormal Red . tshow $ W
colorSev W = colorNormal Yellow . tshow $ W
colorSev E = colorBright Red . tshow $ E
colorSev a = tshow a
addTime ::