Skip to content

Commit

Permalink
chore: improve colors for the log line indicators (#6032)
Browse files Browse the repository at this point in the history
  • Loading branch information
vikrantgupta25 committed Sep 19, 2024
1 parent 8eb2cf1 commit e203276
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
11 changes: 7 additions & 4 deletions frontend/src/container/LogsExplorerChart/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"}`)) {
Expand Down

0 comments on commit e203276

Please sign in to comment.