func (b *SyslogBackend) Log(level Level, calldepth int, rec *Record) error {
	line := rec.Formatted(calldepth + 1)
	switch level {
	case CRITICAL:
		return b.Writer.Crit(line)
	case ERROR:
		return b.Writer.Err(line)
	case WARNING:
		return b.Writer.Warning(line)
	case NOTICE:
		return b.Writer.Notice(line)
	case INFO:
		return b.Writer.Info(line)
	case DEBUG:
		return b.Writer.Debug(line)
	default:
	}
	panic("unhandled log level")
}
func (b *SyslogBackend) Log(level Level, calldepth int, rec *Record) error {
	line := rec.Formatted(calldepth + 1)
	switch level {
	case CRITICAL:
		return b.Writer.Crit(line)
	case ERROR:
		return b.Writer.Err(line)
	case WARNING:
		return b.Writer.Warning(line)
	case NOTICE:
		return b.Writer.Notice(line)
	case INFO:
		return b.Writer.Info(line)
	case DEBUG:
		return b.Writer.Debug(line)
	default:
	}
	panic("unhandled log level")
}
func ( b * SyslogBackend ) Log ( level Level , calldepth int , rec * Record ) error { line := rec . Formatted ( calldepth + 1 ) switch level { case CRITICAL : return b . Writer . Crit ( line ) case ERROR : return b . Writer . Err ( line ) case WARNING : return b . Writer . Warning ( line ) case NOTICE : return b . Writer . Notice ( line ) case INFO : return b . Writer . Info ( line ) case DEBUG : return b . Writer . Debug ( line ) default : } panic ( " " ) }
// Log implements the Backend interface.
Log implements the Backend interface .