refactor: adjust access log

This commit is contained in:
vicanso 2022-01-02 10:02:20 +08:00
parent bf6eb24aff
commit 1bded8e751

View file

@ -18,7 +18,7 @@ func main() {
e := elton.New()
e.Use(middleware.NewLogger(middleware.LoggerConfig{
Format: middleware.LoggerCombined,
Format: `{real-ip} {when-iso} "{method} {uri} {proto}" {status} {size-human} "{userAgent}"`,
OnLog: func(s string, _ *elton.Context) {
fmt.Println(s)
},