]> kaliko git repositories - mpd-sima.git/commitdiff
Some padding in log format, improves readability
authorkaliko <efrim@azylum.org>
Tue, 28 Jan 2014 18:42:00 +0000 (19:42 +0100)
committerkaliko <efrim@azylum.org>
Tue, 28 Jan 2014 18:42:00 +0000 (19:42 +0100)
sima/lib/logger.py

index bde62d7f83b01cd1ca07e2a70112284808712191..c6401bade89fbbb9f9c1c12cdc65fe7e1f37dab6 100644 (file)
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2009, 2010, 2013 Jack Kaliko <kaliko@azylum.org>
+# Copyright (c) 2009, 2010, 2013, 2014 Jack Kaliko <kaliko@azylum.org>
 #
 #  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"