1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
package ldapserver import ( "os" log "github.com/sirupsen/logrus" ) var Logger *log.Logger func init() { Logger = log.New() Logger.SetOutput(os.Stdout) Logger.SetFormatter(&log.TextFormatter{}) Logger.SetLevel(log.InfoLevel) }