summaryrefslogtreecommitdiffstats
path: root/ipalib/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/util.py')
-rw-r--r--ipalib/util.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/ipalib/util.py b/ipalib/util.py
index c16520654..12f9c7814 100644
--- a/ipalib/util.py
+++ b/ipalib/util.py
@@ -25,6 +25,8 @@ import os
from os import path
import imp
import optparse
+import logging
+import time
import krbV
@@ -122,3 +124,10 @@ def add_global_options(parser=None):
help='Produce more verbose output',
)
return parser
+
+
+class LogFormatter(logging.Formatter):
+ """
+ Log formatter that uses UTC for all timestamps.
+ """
+ converter = time.gmtime