def log_rewrite(string):
 if (params.logging == 'debug'):
  logger.debug(string)
 elif ((params.logging == 'off') or (not params.logging)):
  pass
 elif (params.logging == 'print'):
  print(string)
 elif (params.logging == 'info'):
  logger.info(string)
 elif (params.logging == 'warning'):
  logger.warning(string)
 elif (params.logging == 'error'):
  logger.error(string)
 elif (params.logging == 'critical'):
  logger.critical(string)
 else:
  logger.debug(string)

def log_rewrite ( string ) : if ( params . logging == 'debug' ) : logger . debug ( string ) elif ( ( params . logging == 'off' ) or ( not params . logging ) ) : pass elif ( params . logging == 'print' ) : print ( string ) elif ( params . logging == 'info' ) : logger . info ( string ) elif ( params . logging == 'warning' ) : logger . warning ( string ) elif ( params . logging == 'error' ) : logger . error ( string ) elif ( params . logging == 'critical' ) : logger . critical ( string ) else : logger . debug ( string )
log rewrite activity under control of routes .