1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 22:39:18 +01:00

feat: adds critical (#3051)

This commit is contained in:
codeman1o1
2024-06-20 15:32:36 +02:00
committed by GitHub
parent 9465253baf
commit f0b44a2608
2 changed files with 4 additions and 3 deletions

View File

@@ -43,8 +43,9 @@ defineProps<{
}
[data-level="error"],
[data-level="fatal"],
[data-level="severe"] {
[data-level="severe"],
[data-level="critical"],
[data-level="fatal"] {
@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", "severe"}
var logLevels = []string{"error", "warn", "warning", "info", "debug", "trace", "severe", "critical", "fatal"}
var plainLevels = map[string]*regexp.Regexp{}
var bracketLevels = map[string]*regexp.Regexp{}