X-Git-Url: http://git.kaliko.me/?a=blobdiff_plain;f=sima%2Flib%2Flogger.py;h=761769bbdfd4066cba7cac4c52da5c01122472fa;hb=611f98994247324793027cae02d77e5a8efd0f42;hp=752118847658688be6e8cacaf2ef59fae11e4221;hpb=c73d03627448ae3015c2143e2c7629971ff5b326;p=mpd-sima.git diff --git a/sima/lib/logger.py b/sima/lib/logger.py index 7521188..761769b 100644 --- a/sima/lib/logger.py +++ b/sima/lib/logger.py @@ -23,11 +23,14 @@ Logging facility for sima. """ +# standard library import import logging import sys + LOG_FORMATS = { - logging.DEBUG: '{asctime} {filename}:{lineno}({funcName}) {levelname}: {message}', + logging.DEBUG: '{asctime} {filename}:{lineno}({funcName}) ' + '{levelname}: {message}', logging.INFO: '{asctime} {levelname}: {message}' } DATE_FMT = "%Y-%m-%d %H:%M:%S"