fightitng log levels still

This commit is contained in:
Seth Call 2026-01-16 08:57:21 -06:00
parent c531a14704
commit 0d86eca77f
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, 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'.