func (h *ChannelHandler) SetChannel(channel LogPartsChannel) {
	h.channel = channel
}
The channel to be used
package syslog
import (
	"gopkg.in/mcuadros/go-syslog.v2/format"
)
type Handler interface {
	Handle(format.LogParts, int64, error)
}
type LogPartsChannel chan format.LogParts
type ChannelHandler struct {
	channel LogPartsChannel
}
func NewChannelHandler(channel LogPartsChannel) *ChannelHandler {
	handler := new(ChannelHandler)
	handler.SetChannel(channel)
	return handler
}