log level fighting
This commit is contained in:
parent
b0a4fe331b
commit
1128386b7a
|
|
@ -46,7 +46,8 @@ spec:
|
|||
- cri: {}
|
||||
- regex:
|
||||
# Capture into a temporary variable 'raw_level' to avoid overwriting existing logic
|
||||
expression: '\[(?P<raw_level>DEBUG|INFO|WARN|ERROR|LOG|TRACE)\]\s+(?P<message>.*)$'
|
||||
# Matches: [TIMESTAMP] [LEVEL] Message
|
||||
expression: '^\[.+\]\s+\[(?P<raw_level>DEBUG|INFO|WARN|ERROR|LOG|TRACE)\]\s+(?P<message>.*)$'
|
||||
- template:
|
||||
source: level
|
||||
# If raw_level exists (regex matched), map it. Otherwise, default to 'info'.
|
||||
|
|
|
|||
|
|
@ -82,3 +82,6 @@ loki:
|
|||
|
||||
gateway:
|
||||
enabled: false
|
||||
|
||||
lokiCanary:
|
||||
enabled: false
|
||||
|
|
|
|||
Loading…
Reference in New Issue