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