def emit(self, record): msg = self.format(record) # noinspection PyBroadException try: host.log_message(msg) except: # pylint: disable=W0702 # Handle NameError trassir error if logger in finalizer function pass
def write_log(row, debug=False): if debug: host.log_message(row)
def emit(self, record): host.log_message(self.format(record))