bottin/ldapserver/logger.go

19 lines
239 B
Go
Raw Permalink Normal View History

package ldapserver
import (
"os"
2020-01-26 18:47:38 +00:00
2020-02-01 14:05:44 +00:00
log "github.com/sirupsen/logrus"
)
2020-02-01 14:05:44 +00:00
var Logger *log.Logger
func init() {
2020-02-01 14:05:44 +00:00
Logger = log.New()
Logger.SetOutput(os.Stdout)
Logger.SetFormatter(&log.TextFormatter{})
Logger.SetLevel(log.InfoLevel)
}