From 773096a584c5affc40cd72ae96a5f1d3bbc5421a Mon Sep 17 00:00:00 2001 From: Luciano Righetti Date: Thu, 16 Jan 2025 10:30:17 +0100 Subject: [PATCH] chg: change logging defaults --- src/.gitignore | 2 +- src/logging.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/.gitignore b/src/.gitignore index ae729a8..f1ca77a 100644 --- a/src/.gitignore +++ b/src/.gitignore @@ -127,4 +127,4 @@ dmypy.json config.json # logs -logs/*.log \ No newline at end of file +logs/* \ No newline at end of file diff --git a/src/logging.yaml b/src/logging.yaml index 7f86c71..b52e943 100644 --- a/src/logging.yaml +++ b/src/logging.yaml @@ -9,16 +9,16 @@ handlers: console: class: logging.StreamHandler level: DEBUG - formatter: simple + formatter: verbose stream: ext://sys.stdout file: class: logging.handlers.TimedRotatingFileHandler - level: DEBUG - formatter: verbose + level: INFO + formatter: simple when: D - backupCount: 0 + backupCount: 5 filename: ./logs/misp-guard.log loggers: root: level: DEBUG - handlers: [console] + handlers: [console, file]