// Register registers the default lion Logger as the dlog Logger. func Register() { lion.AddGlobalHook( func(lionLogger lion.Logger) { dlog.SetLogger(NewLogger(lionLogger)) }, ) }
// Register registers the default logrus Logger as the dlog Logger. func Register() { dlog.SetLogger(NewLogger(logrus.StandardLogger())) }
// Register registers the default log15 Logger as the dlog Logger. func Register() { dlog.SetLogger(NewLogger(log15.Root())) }
func init() { dlog.SetLogger(logrus.New()) }
func init() { dlog.SetLogger(NewLogger(protolog.NewStandardLogger(protolog.NewFileFlusher(os.Stderr)))) }
func init() { dlog.SetLogger(&logger{}) }