parameters: (facility)
docstring: Given a string (*facility*) such as, "daemon" returns the numeric
      syslog.LOG_* equivalent.
docstring_summary: Given a string (*facility*) such as, "daemon" returns the numeric
      syslog.LOG_* equivalent.
docstring_tokens: Given a string ( * facility * ) such as daemon returns the numeric syslog . LOG_ * equivalent .
function: def string_to_syslog_facility(facility):
      """
      Given a string (*facility*) such as, "daemon" returns the numeric
      syslog.LOG_* equivalent.
      """
      if facility.lower() in FACILITIES:
          return FACILITIES[facility.lower()]
      else:
          raise UnknownFacility(
              "%s does not match a known syslog facility" % repr(facility))
function_tokens: def string_to_syslog_facility ( facility ) : if facility . lower ( ) in FACILITIES : return FACILITIES [ facility . lower ( ) ] else : raise UnknownFacility ( "%s does not match a known syslog facility" % repr ( facility ) )