mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 05:21:57 +00:00
14 lines
286 B
Go
14 lines
286 B
Go
package middleware
|
|
|
|
import (
|
|
"github.com/gofiber/fiber/v2"
|
|
"github.com/gofiber/fiber/v2/middleware/logger"
|
|
)
|
|
|
|
func LoggerConfig() fiber.Handler {
|
|
return logger.New(logger.Config{
|
|
Format: "${time} ${method} ${status} ${path} in ${latency}\n",
|
|
TimeFormat: "15:04:05.00",
|
|
})
|
|
}
|