autodl-projects/lib/log_utils/print_logger.py

15 lines
272 B
Python
Raw Normal View History

2019-11-09 14:15:31 +01:00
import os, sys, time
2019-09-28 10:24:47 +02:00
class PrintLogger(object):
def __init__(self):
"""Create a summary writer logging to log_dir."""
self.name = 'PrintLogger'
def log(self, string):
print (string)
def close(self):
print ('-'*30 + ' close printer ' + '-'*30)