func (f Facility) String() string {
	if f == facilityDefault {
		f = FacilityUser
	}
	switch f {
	case FacilityKern:
		return "KERN"
	case FacilityUser:
		return "USER"
	case FacilityMail:
		return "MAIL"
	case FacilityDaemon:
		return "DAEMON"
	case FacilityAuth:
		return "AUTH"
	case FacilitySyslog:
		return "SYSLOG"
	case FacilityLPR:
		return "LPR"
	case FacilityNews:
		return "NEWS"
	case FacilityUUCP:
		return "UUCP"
	case FacilityCron:
		return "CRON"
	case FacilityAuthpriv:
		return "AUTHPRIV"
	case FacilityFTP:
		return "FTP"
	case FacilityLocal0:
		return "LOCAL0"
	case FacilityLocal1:
		return "LOCAL1"
	case FacilityLocal2:
		return "LOCAL2"
	case FacilityLocal3:
		return "LOCAL3"
	case FacilityLocal4:
		return "LOCAL4"
	case FacilityLocal5:
		return "LOCAL5"
	case FacilityLocal6:
		return "LOCAL6"
	case FacilityLocal7:
		return "LOCAL7"
	default:
		return fmt.Sprintf("Facility %d", int(f))
	}
}
// String returns the name of the facility.
String returns the name of the facility.
// String returns the name of the facility .
func (f Facility) String() string {
	if f == facilityDefault {
		f = FacilityUser
	}
	switch f {
	case FacilityKern:
		return "KERN"
	case FacilityUser:
		return "USER"
	case FacilityMail:
		return "MAIL"
	case FacilityDaemon:
		return "DAEMON"
	case FacilityAuth:
		return "AUTH"
	case FacilitySyslog:
		return "SYSLOG"
	case FacilityLPR:
		return "LPR"
	case FacilityNews:
		return "NEWS"
	case FacilityUUCP:
		return "UUCP"
	case FacilityCron:
		return "CRON"
	case FacilityAuthpriv:
		return "AUTHPRIV"
	case FacilityFTP:
		return "FTP"
	case FacilityLocal0:
		return "LOCAL0"
	case FacilityLocal1:
		return "LOCAL1"
	case FacilityLocal2:
		return "LOCAL2"
	case FacilityLocal3:
		return "LOCAL3"
	case FacilityLocal4:
		return "LOCAL4"
	case FacilityLocal5:
		return "LOCAL5"
	case FacilityLocal6:
		return "LOCAL6"
	case FacilityLocal7:
		return "LOCAL7"
	default:
		return fmt.Sprintf("Facility %d", int(f))
	}
}
func ( f Facility ) String ( ) string { if f == facilityDefault { f = FacilityUser } switch f { case FacilityKern : return " " case FacilityUser : return " " case FacilityMail : return " " case FacilityDaemon : return " " case FacilityAuth : return " " case FacilitySyslog : return " " case FacilityLPR : return " " case FacilityNews : return " " case FacilityUUCP : return " " case FacilityCron : return " " case FacilityAuthpriv : return " " case FacilityFTP : return " " case FacilityLocal0 : return " " case FacilityLocal1 : return " " case FacilityLocal2 : return " " case FacilityLocal3 : return " " case FacilityLocal4 : return " " case FacilityLocal5 : return " " case FacilityLocal6 : return " " case FacilityLocal7 : return " " default : return fmt . Sprintf ( " " , int ( f ) ) } }
String returns the name of the facility.
String returns the name of the facility .