From: Ed Page Date: Wed, 17 Mar 2010 03:12:16 +0000 (-0500) Subject: Reformatting the log X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;ds=sidebyside;h=b7dff3b0c61c77dc1cf50f0beb8bd67251f950a9;p=theonering Reformatting the log --- diff --git a/src/theonering.py b/src/theonering.py index da5d8a2..49a173f 100755 --- a/src/theonering.py +++ b/src/theonering.py @@ -90,17 +90,18 @@ def main(logToFile): raise telepathy_utils.debug_divert_messages(os.getenv('THEONERING_LOGFILE')) + logFormat = '(%(asctime)s) %(levelname)-5s %(threadName)s.%(name)s: %(message)s' if logToFile: logging.basicConfig( level=logging.DEBUG, filename=constants._user_logpath_, - format='(%(asctime)s) %(levelname)s:%(name)s:%(message)s', + format=logFormat, datefmt='%H:%M:%S', ) else: logging.basicConfig( level=logging.DEBUG, - format='(%(asctime)s) %(levelname)s:%(name)s:%(message)s', + format=logFormat, datefmt='%H:%M:%S', ) logging.info("telepathy-theonering %s-%s" % (constants.__version__, constants.__build__))