def __init__(self, log):
"""Initialize default configuration."""
# some libraries think it is a good idea to add handlers by default
# without documenting that at all, thanks gpy...
log.propagate = False
self.log = log
self.n_jobs = 1
self.monitor_verbosity = 0
self._stream_handler = None
self._file_handler = None
self._fmt = ('%(process)d - %(asctime)s - %(name)s - %(levelname)s'
+ ' - %(message)s')
self._formatter = logging.Formatter(self._fmt)
try:
import gym
gym.undo_logger_setup()
except:
pass
评论列表
文章目录