Added custom log formatter util.LogFormatter that makes the human-readable time stamp in UTC

This commit is contained in:
Jason Gerard DeRose
2008-10-31 20:25:33 -06:00
parent 5e5a83e4e8
commit 242a8183a7
3 changed files with 13 additions and 4 deletions
+9
View File
@@ -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