code: func New(w io.Writer, f logrus.Formatter) logrus.Hook {
  	return Hook{
  		writer:    w,
  		formatter: f,
  	}
  }
docs: // New returns a new logrus.Hook for Logstash.
  //
  // To create a new hook that sends logs to `tcp://logstash.corp.io:9999`:
  //
  // conn, _ := net.Dial("tcp", "logstash.corp.io:9999")
  // hook := logrustash.New(conn, logrustash.DefaultFormatter())