Пример #1
0
def _init_log_handler():
    log_handler = RpcLogHandler()
    log_handler.setLevel(logging.ERROR)
    log_handler.formatter = logging.Formatter(DEFAULT_LOG_FORMAT)
    return log_handler
Пример #2
0
 def _init_log_handler(self):
     self.log_handler = RpcLogHandler()
     self.log_handler.setLevel(logging.ERROR)
     self.log_handler.formatter = logging.Formatter(self.default_log_format)