Set Logger to UTC

With directory names, graphs and everything else in UTC, it becomes hard to
correlate things if the logger is not in UTC.

Change-Id: I8d1f88103d6eb413b11046cf997e146ae9820731
This commit is contained in:
Sai Sindhur Malleni 2016-08-23 12:37:53 -04:00
parent 687550e970
commit 17eaf5d3d0

View File

@ -20,6 +20,7 @@ import argparse
import logging
import sys
import yaml
import time
import datetime
import os
from pykwalify import core as pykwalify_core
@ -84,6 +85,7 @@ def main():
_logger = logging.getLogger('browbeat')
_logger.setLevel(logging.DEBUG)
_formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)7s - %(message)s')
_formatter.converter = time.gmtime
_dbg_file = logging.FileHandler(debug_log_file)
_dbg_file.setLevel(logging.DEBUG)
_dbg_file.setFormatter(_formatter)