From 664001c35c610ed3176c99edf4b75923735b0644 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Mon, 29 Feb 2016 22:45:18 -0600 Subject: [PATCH] Tweak output of logger, add datetime. --- calibre-plugin/__init__.py | 2 +- fanficfare/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/calibre-plugin/__init__.py b/calibre-plugin/__init__.py index 9b13019..148981f 100644 --- a/calibre-plugin/__init__.py +++ b/calibre-plugin/__init__.py @@ -12,7 +12,7 @@ if sys.version_info >= (2, 7): import logging logger = logging.getLogger(__name__) loghandler=logging.StreamHandler() - loghandler.setFormatter(logging.Formatter("FFF:%(levelname)s:%(filename)s(%(lineno)d):%(message)s")) + loghandler.setFormatter(logging.Formatter("FFF: %(levelname)s: %(asctime)s: %(filename)s(%(lineno)d): %(message)s")) logger.addHandler(loghandler) loghandler.setLevel(logging.DEBUG) logger.setLevel(logging.DEBUG) diff --git a/fanficfare/__init__.py b/fanficfare/__init__.py index 09269c6..123d607 100644 --- a/fanficfare/__init__.py +++ b/fanficfare/__init__.py @@ -27,7 +27,7 @@ except: import logging logger = logging.getLogger(__name__) loghandler=logging.StreamHandler() - loghandler.setFormatter(logging.Formatter("FFF:%(levelname)s:%(filename)s(%(lineno)d):%(message)s")) + loghandler.setFormatter(logging.Formatter("FFF: %(levelname)s: %(asctime)s: %(filename)s(%(lineno)d): %(message)s")) logger.addHandler(loghandler) loghandler.setLevel(logging.DEBUG) logger.setLevel(logging.DEBUG)