telegram-notifier/notifier/logger/logger.go

11 lines
146 B
Go
Raw Normal View History

package logger
import "github.com/sirupsen/logrus"
var L logrus.Logger
func Init(level logrus.Level) {
L = *logrus.New()
L.SetLevel(level)
}