X-Git-Url: http://git.kaliko.me/?a=blobdiff_plain;f=sima%2Flib%2Flogger.py;h=807f10fcca1d279cfdaa3147a98f172468fb736c;hb=c1bda032095902bdcd183c530a9c4de28f3c828a;hp=752118847658688be6e8cacaf2ef59fae11e4221;hpb=c73d03627448ae3015c2143e2c7629971ff5b326;p=mpd-sima.git diff --git a/sima/lib/logger.py b/sima/lib/logger.py index 7521188..807f10f 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 Jack Kaliko # # This file is part of sima # @@ -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"