Add formatters: table, JSON, text and config
Some checks failed
Some checks failed
This commit is contained in:
61
loglens/config.yaml
Normal file
61
loglens/config.yaml
Normal file
@@ -0,0 +1,61 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user