package app import ( "github.com/gin-gonic/gin" "github.com/sirupsen/logrus" ) func InitLogger() { if gin.Mode() == gin.DebugMode { logrus.SetLevel(logrus.DebugLevel) } }