chore: improve colors for the log line indicators (#6032)

This commit is contained in:
Vikrant Gupta 2024-09-19 23:02:32 +05:30 committed by GitHub
parent 8eb2cf144e
commit e203276678
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 12 deletions

View File

@ -22,26 +22,21 @@
}
&.INFO {
background-color: var(--bg-slate-400);
background-color: var(--bg-robin-500);
}
&.WARNING,
&.WARN {
background-color: var(--bg-amber-500);
}
&.ERROR {
background-color: var(--bg-cherry-500);
}
&.TRACE {
background-color: var(--bg-robin-300);
background-color: var(--bg-forest-400);
}
&.DEBUG {
background-color: var(--bg-forest-500);
background-color: var(--bg-aqua-500);
}
&.FATAL {
background-color: var(--bg-sakura-500);
}

View File

@ -9,15 +9,18 @@ export function getColorsForSeverityLabels(
const lowerCaseLabel = label.toLowerCase();
if (lowerCaseLabel.includes(`{severity_text="trace"}`)) {
return Color.BG_ROBIN_300;
return Color.BG_FOREST_400;
}
if (lowerCaseLabel.includes(`{severity_text="debug"}`)) {
return Color.BG_FOREST_500;
return Color.BG_AQUA_500;
}
if (lowerCaseLabel.includes(`{severity_text="info"}`)) {
return Color.BG_SLATE_400;
if (
lowerCaseLabel.includes(`{severity_text="info"}`) ||
lowerCaseLabel.includes(`{severity_text=""}`)
) {
return Color.BG_ROBIN_500;
}
if (lowerCaseLabel.includes(`{severity_text="warn"}`)) {