def init_logging(self):
        logger = logging.getLogger('%slogger' % self.__class__.__name__)
        for hdlr in logger.handlers: logger.removeHandler(hdlr)
        hdlr = logging.FileHandler(paths.get_logging_path(self.model.get_root_path()))
        formatter = logging.Formatter('%(message)s')
        hdlr.setFormatter(formatter)
        logger.addHandler(hdlr)
        ch = logging.StreamHandler(sys.stdout)
        ch.setFormatter(formatter)
        logger.addHandler(ch)
        logger.setLevel(logging.INFO)
        self.logger = logger
Fetch commits on this pull request.
dataset/ETHPy150Open larsmaaloee/auxiliary-deep-generative-models/training/base.py/Train.init_logging--crossover with--dataset/ETHPy150Open ducksboard/libsaas/libsaas/services/github/pullrequests.py/PullRequest.commits