def naglog_result(level, result, *args):
 prev_formatters = []
 for handler in logger.handlers:
  prev_formatters.append(handler.formatter)
  handler.setFormatter(nagFormatter)
 log_fun = getattr(logger, level)
 if log_fun:
  log_fun(result)
 for (index, handler) in enumerate(logger.handlers):
  handler.setFormatter(prev_formatters[index])

def naglog_result ( level , result , * args ) : prev_formatters = [ ] for handler in logger . handlers : prev_formatters . append ( handler . formatter ) handler . setFormatter ( nagFormatter ) log_fun = getattr ( logger , level ) if log_fun : log_fun ( result ) for ( index , handler ) in enumerate ( logger . handlers ) : handler . setFormatter ( prev_formatters [ index ] )
function use for old nag compatibility .