summaryrefslogtreecommitdiffstats
path: root/ipalib/plugable.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-10-31 20:25:33 -0600
committerJason Gerard DeRose <jderose@redhat.com>2008-10-31 20:25:33 -0600
commit242a8183a7cc002f496421352e8346db4232648b (patch)
tree23f83463b766af467a631af5c6a8b54973ccf5d6 /ipalib/plugable.py
parent5e5a83e4e84d2e9a5d6d987056199a8ed83978b8 (diff)
downloadfreeipa-242a8183a7cc002f496421352e8346db4232648b.tar.gz
freeipa-242a8183a7cc002f496421352e8346db4232648b.tar.xz
freeipa-242a8183a7cc002f496421352e8346db4232648b.zip
Added custom log formatter util.LogFormatter that makes the human-readable time stamp in UTC
Diffstat (limited to 'ipalib/plugable.py')
-rw-r--r--ipalib/plugable.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/plugable.py b/ipalib/plugable.py
index 64a9d835..08a978ed 100644
--- a/ipalib/plugable.py
+++ b/ipalib/plugable.py
@@ -793,7 +793,7 @@ class API(DictProxy):
stderr.setLevel(logging.INFO)
else:
stderr.setLevel(logging.WARNING)
- stderr.setFormatter(logging.Formatter(format))
+ stderr.setFormatter(util.LogFormatter(format))
log.addHandler(stderr)
# Add file handler:
@@ -807,7 +807,7 @@ class API(DictProxy):
log.warn('Could not create log_dir %r', log_dir)
return
handler = logging.FileHandler(self.env.log)
- handler.setFormatter(logging.Formatter(self.env.log_format_file))
+ handler.setFormatter(util.LogFormatter(self.env.log_format_file))
if self.env.debug:
handler.setLevel(logging.DEBUG)
else: