func Open(host string, cfg ClientConfig, dial DialFunc) (*Client, error) {
	if dial == nil {
		dial = func(n, a string) (Conn, error) { return net.Dial(n, a) }
	}
	conn, err := dial("tcp", host)
	if err != nil {
		return nil, errors.Trace(err)
	}

	client := &Client{
		maxSize: cfg.MaxSize,
		timeout: cfg.SendTimeout,
		conn:    conn,
	}
	return client, nil
}
// Open opens a syslog client to the given host address. If no dial
// func is provided then net.Dial is used.
Open opens a syslog client to the given host address. If no dial
func is provided then net.Dial is used.
// Open opens a syslog client to the given host address . If no dial // func is provided then net . Dial is used .
func Open(host string, cfg ClientConfig, dial DialFunc) (*Client, error) {
	if dial == nil {
		dial = func(n, a string) (Conn, error) { return net.Dial(n, a) }
	}
	conn, err := dial("tcp", host)
	if err != nil {
		return nil, errors.Trace(err)
	}
	client := &Client{
		maxSize: cfg.MaxSize,
		timeout: cfg.SendTimeout,
		conn:    conn,
	}
	return client, nil
}
func Open ( host string , cfg ClientConfig , dial DialFunc ) ( * Client , error ) { if dial == nil { dial = func ( n , a string ) ( Conn , error ) { return net . Dial ( n , a ) } } conn , err := dial ( " " , host ) if err != nil { return nil , errors . Trace ( err ) } client := & Client { maxSize : cfg . MaxSize , timeout : cfg . SendTimeout , conn : conn , } return client , nil }
Open opens a syslog client to the given host address.
Open opens a syslog client to the given host address .