fightitng log levels still
This commit is contained in:
parent
c531a14704
commit
0d86eca77f
|
|
@ -46,8 +46,8 @@ spec:
|
|||
- cri: {}
|
||||
- regex:
|
||||
# Capture into a temporary variable 'raw_level' to avoid overwriting existing logic
|
||||
# Matches: [TIMESTAMP] [LEVEL] Message, handling potential ANSI codes inside [LEVEL]
|
||||
expression: '\[.*(?P<raw_level>DEBUG|INFO|WARN|ERROR|LOG|TRACE).*\]\s+(?P<message>.*)$'
|
||||
# Matches: [LEVEL] anywhere in the line
|
||||
expression: '\[(?P<raw_level>DEBUG|INFO|WARN|ERROR|LOG|TRACE)\]'
|
||||
- template:
|
||||
source: level
|
||||
# If raw_level exists (regex matched), map it. Otherwise, default to 'info'.
|
||||
|
|
|
|||
Loading…
Reference in New Issue