mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-21 13:23:07 +01:00
@@ -13,7 +13,7 @@ var SupportedLogLevels map[string]struct{}
|
||||
// Changing this also needs to change the logContext.ts file
|
||||
var logLevels = [][]string{
|
||||
{"error", "err"},
|
||||
{"warn", "warning"},
|
||||
{"warn", "warning", "wrn"},
|
||||
{"info", "inf"},
|
||||
{"debug", "dbg"},
|
||||
{"trace"},
|
||||
|
||||
@@ -40,6 +40,7 @@ func TestGuessLogLevel(t *testing.T) {
|
||||
{"DBG with more error=msg", "debug"},
|
||||
{"inf Something went wrong", "info"},
|
||||
{"crit: Something went wrong", "fatal"},
|
||||
{"[21:01:45] [WRN] this is a test", "warn"},
|
||||
{orderedmap.New[string, string](
|
||||
orderedmap.WithInitialData(
|
||||
orderedmap.Pair[string, string]{Key: "key", Value: "value"},
|
||||
|
||||
Reference in New Issue
Block a user