Closed
Description
Would be nice if Logger middleware had a custom time format configuration option. I would like to set my own time configuration.
it would be like:
timestampFormat := "2006-01-02 15:04:05.00000"
e.Use(middleware.LoggerWithConfig(middleware.LoggerConfig{
Output: logger,
TimestampFormat: timestampFormat ,
}))
on echo/middleware/logger.go something like that:
case "time_custom":
return buf.WriteString(time.Now().Format(TimeStampFormat))