62 lines
1.1 KiB
YAML
62 lines
1.1 KiB
YAML
# LogLens Configuration File
|
|
|
|
# Default log level for loglens output
|
|
log_level: INFO
|
|
|
|
# Enable PII masking in logs
|
|
mask_pii: false
|
|
|
|
# Color output: auto, always, never
|
|
color_output: auto
|
|
|
|
# Severity classification rules
|
|
severity_rules:
|
|
critical:
|
|
- patterns:
|
|
- "fatal"
|
|
- "segfault"
|
|
- "panic"
|
|
- "core dumped"
|
|
weight: 10
|
|
error:
|
|
- patterns:
|
|
- "error"
|
|
- "exception"
|
|
- "failed"
|
|
- "timeout"
|
|
weight: 5
|
|
warning:
|
|
- patterns:
|
|
- "warning"
|
|
- "warn"
|
|
- "deprecation"
|
|
weight: 3
|
|
info:
|
|
- patterns:
|
|
- "info"
|
|
- "notice"
|
|
weight: 1
|
|
debug:
|
|
- patterns:
|
|
- "debug"
|
|
- "trace"
|
|
weight: 0
|
|
|
|
# Output settings
|
|
output:
|
|
# Maximum number of entries to display
|
|
max_entries: 100
|
|
# Show timestamps
|
|
show_timestamps: true
|
|
# Show severity badges
|
|
show_severity: true
|
|
|
|
# Custom patterns (additional error patterns)
|
|
custom_patterns:
|
|
- name: "Database Connection"
|
|
pattern: "Connection.*refused|Too many connections"
|
|
severity: error
|
|
- name: "HTTP 5xx"
|
|
pattern: "HTTP Error 5\\d{2}"
|
|
severity: error
|