From 26663d377a481e00dcd5a730160772ef92c326ec Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Mon, 2 Feb 2026 08:06:17 +0000 Subject: [PATCH] Add formatters: table, JSON, text and config --- loglens/config.yaml | 61 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 loglens/config.yaml diff --git a/loglens/config.yaml b/loglens/config.yaml new file mode 100644 index 0000000..22bdd7c --- /dev/null +++ b/loglens/config.yaml @@ -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