diff --git a/cmd/koushin/main.go b/cmd/koushin/main.go index d260d99..d9edfc9 100644 --- a/cmd/koushin/main.go +++ b/cmd/koushin/main.go @@ -50,6 +50,11 @@ func main() { e.Logger.Fatal(err) } e.Use(middleware.Recover()) + if options.Debug { + e.Use(middleware.LoggerWithConfig(middleware.LoggerConfig{ + Format: "${time_rfc3339} method=${method}, uri=${uri}, status=${status}\n", + })) + } if options.Debug { e.Logger.SetLevel(log.DEBUG)