def _add_handler(self):
        try:
            handler = RotatingFileHandler(
                '/var/log/%s.log' % self.log_name,
                maxBytes=10485760,
                backupCount=3
            )
            formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")
            handler.setFormatter(formatter)
            self.logger.addHandler(handler)
        except __HOLE__:
            self.logger.addHandler(StreamHandler(sys.stderr))
dataset/ETHPy150Open bcoe/smtproutes/smtproutes/config/log.py/Log._add_handler