def access_log_level(lvl):
 if (lvl not in (logging.DEBUG, logging.WARN, logging.ERROR, logging.CRITICAL, logging.FATAL)):
  raise ValueError(('%s is not a valid logging level' % (lvl,)))
 def deco_view(func):
  func.access_log_level = lvl
  return func
 return deco_view

def access_log_level ( lvl ) : if ( lvl not in ( logging . DEBUG , logging . WARN , logging . ERROR , logging . CRITICAL , logging . FATAL ) ) : raise ValueError ( ( '%s is not a valid logging level' % ( lvl , ) ) ) def deco_view ( func ) : func . access_log_level = lvl return func return deco_view
decorator to set the access log level of a view function .