http-boot-server/bootserver/logger/logger.go

14 lines
210 B
Go
Raw Permalink Normal View History

2023-07-23 08:49:57 +00:00
package logger
import "github.com/sirupsen/logrus"
var L *logrus.Logger
func Init(level logrus.Level) {
L = logrus.New()
L.SetLevel(level)
L.SetFormatter(&logrus.TextFormatter{
ForceColors: true,
})
2023-07-23 08:49:57 +00:00
}