Commit 67ddbd8e authored by Anthony Larcher's avatar Anthony Larcher
Browse files

refactoring

parent b2b81ab7
...@@ -347,8 +347,9 @@ class TrainingMonitor(): ...@@ -347,8 +347,9 @@ class TrainingMonitor():
logger.setLevel(logging.DEBUG) logger.setLevel(logging.DEBUG)
# create file handler which logs even debug messages # create file handler which logs even debug messages
fh = logging.FileHandler(output_file) fh = logging.FileHandler(output_file)
formatter = logging.Formatter('%(asctime)s - %(levelname)s - %(message)s')
fh.setFormatter(formatter)
fh.setLevel(logging.DEBUG) fh.setLevel(logging.DEBUG)
logger.addHandler(fh)
def display(self): def display(self):
""" """
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment