try to overwrite logs

This commit is contained in:
Seth Call 2026-01-13 21:04:16 -06:00
parent 1128386b7a
commit c531a14704
1 changed files with 2 additions and 2 deletions

View File

@ -46,8 +46,8 @@ spec:
- cri: {}
- regex:
# Capture into a temporary variable 'raw_level' to avoid overwriting existing logic
# Matches: [TIMESTAMP] [LEVEL] Message
expression: '^\[.+\]\s+\[(?P<raw_level>DEBUG|INFO|WARN|ERROR|LOG|TRACE)\]\s+(?P<message>.*)$'
# Matches: [TIMESTAMP] [LEVEL] Message, handling potential ANSI codes inside [LEVEL]
expression: '\[.*(?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'.