1
0
mirror of https://github.com/amir20/dozzle.git synced 2026-01-05 12:25:32 +01:00

feat: adds severe (#3005)

This commit is contained in:
Amir Raminfar
2024-06-01 14:28:28 -07:00
committed by GitHub
parent e7911dbce6
commit 496a894d86
2 changed files with 3 additions and 2 deletions

View File

@@ -43,7 +43,8 @@ defineProps<{
}
[data-level="error"],
[data-level="fatal"] {
[data-level="fatal"],
[data-level="severe"] {
@apply bg-red;
}

View File

@@ -9,7 +9,7 @@ import (
)
var keyValueRegex = regexp.MustCompile(`level=(\w+)`)
var logLevels = []string{"error", "warn", "warning", "info", "debug", "trace", "fatal"}
var logLevels = []string{"error", "warn", "warning", "info", "debug", "trace", "fatal", "severe"}
var plainLevels = map[string]*regexp.Regexp{}
var bracketLevels = map[string]*regexp.Regexp{}