func Logger() vodka.MiddlewareFunc {
	return LoggerWithConfig(DefaultLoggerConfig)
}
Logger returns a middleware that logs HTTP requests.
package middleware
import (
	"bytes"
	"io"
	"os"
	"strconv"
	"sync"
	"time"
	"github.com/insionng/vodka"
	"github.com/insionng/vodka/libraries/gommon/color"
	isatty "github.com/mattn/go-isatty"
	"github.com/valyala/fasttemplate"
)
type (
	LoggerConfig struct {
		Skipper Skipper
		Format string `json:"format"`
		Output io.Writer
		template   *fasttemplate.Template
		color      *color.Color
		bufferPool sync.Pool
	}
)
var (
	DefaultLoggerConfig = LoggerConfig{
		Skipper: defaultSkipper,
		Format: `{"time":"${time_rfc3339}","remote_ip":"${remote_ip}",` +
			`"method":"${method}","uri":"${uri}","status":${status}, "latency":${latency},` +
			`"latency_human":"${latency_human}","bytes_in":${bytes_in},` +
			`"bytes_out":${bytes_out}}` + "\n",
		Output: os.Stdout,
		color:  color.New(),
	}
)