package middlewares import ( "github.com/gofiber/fiber/v3" log "github.com/sirupsen/logrus" ) func (f *Middlewares) DebugMode(ctx fiber.Ctx) error { log.Info("------------------") log.Infof("c.Path: %s", ctx.Path()) log.Infof("Request Method: %s", ctx.Method()) log.Infof("FullURL: %s", ctx.Request().URI().FullURI()) log.Infof("StartPATH: %s", ctx.Params("*")) log.Info("------------------") return ctx.Next() }