func New(remoteHost string, method string, header stdhttp.Header) (*HTTP, error) {
	if _, err := url.Parse(remoteHost); err != nil {
		return nil, err
	}
	h := &HTTP{
		remoteHost:      remoteHost,
		timestampFormat: log.DefaultTimeFormat,
		header:          header,
		method:          method,
		client:          stdhttp.Client{},
		formatFunc:      defaultFormatFunc,
	}
	return h, nil
}
New returns a new instance of the http logger
package http
import (
	"bytes"
	"fmt"
	"io/ioutil"
	stdhttp "net/http"
	"net/url"
	"strconv"
	"sync"
	"github.com/go-playground/log/v7"
)
type FormatFunc func(h *HTTP) Formatter
type Formatter func(e log.Entry) []byte
const (
	space  = byte(' ')
	equals = byte('=')
	base10 = 10
	v      = "%v"
)
type HTTP struct {
	remoteHost      string
	formatter       Formatter
	formatFunc      FormatFunc
	timestampFormat string
	header          stdhttp.Header
	method          string
	client          stdhttp.Client
	once            sync.Once
}