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

13 lines
210 B
Go

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,
})
}