From 75f372154df31c76ab11c046ceb2852381d01338 Mon Sep 17 00:00:00 2001 From: Chris Leaman Date: Tue, 4 Dec 2018 09:30:00 +1100 Subject: [PATCH] Update logging format --- src/logging.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/logging.yaml b/src/logging.yaml index fc82b31..ea78c7a 100644 --- a/src/logging.yaml +++ b/src/logging.yaml @@ -3,7 +3,8 @@ version: 1 disable_existing_loggers: False formatters: simple: - format: "%(asctime)s - %(filename)s - %(levelname)s - %(message)s" + format: "[%(asctime)s] [%(filename)15.15s:%(lineno)4.4s %(funcName)15.15s] [%(levelname)-4.4s] %(message)s" + datefmt: "%Y-%m-%d %H:%M:%S" handlers: console: @@ -46,5 +47,5 @@ loggers: propagate: no root: - level: INFO + level: DEBUG handlers: [console, info_file_handler, error_file_handler, warning_file_handler]