From fe2b426f70ed252d9f1ea50716bc8326ea00c2eb Mon Sep 17 00:00:00 2001 From: kaliko Date: Tue, 28 Jan 2014 19:42:00 +0100 Subject: [PATCH] Some padding in log format, improves readability --- sima/lib/logger.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sima/lib/logger.py b/sima/lib/logger.py index bde62d7..c6401ba 100644 --- a/sima/lib/logger.py +++ b/sima/lib/logger.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright (c) 2009, 2010, 2013 Jack Kaliko +# Copyright (c) 2009, 2010, 2013, 2014 Jack Kaliko # # This file is part of sima # @@ -29,10 +29,10 @@ import sys LOG_FORMATS = { + logging.DEBUG: '{asctime} {filename: >10}:{lineno: <3} {levelname: <5}: {message}', + logging.INFO: '{asctime} {levelname: <7}: {message}', #logging.DEBUG: '{asctime} {filename}:{lineno}({funcName}) ' #'{levelname}: {message}', - logging.DEBUG: '{asctime} {filename}:{lineno} {levelname}: {message}', - logging.INFO: '{asctime} {levelname}: {message}', } DATE_FMT = "%Y-%m-%d %H:%M:%S" -- 2.39.5