gobin/utils/logs.go

12 lines
198 B
Go

package utils
import (
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/logger"
)
func ActivateLogger(app *fiber.App) {
if LOGGING == "true" {
app.Use(logger.New())
}
}