Example #1
0
// Register registers the default lion Logger as the dlog Logger.
func Register() {
	lion.AddGlobalHook(
		func(lionLogger lion.Logger) {
			dlog.SetLogger(NewLogger(lionLogger))
		},
	)
}
Example #2
0
// Register registers the default logrus Logger as the dlog Logger.
func Register() {
	dlog.SetLogger(NewLogger(logrus.StandardLogger()))
}
Example #3
0
// Register registers the default log15 Logger as the dlog Logger.
func Register() {
	dlog.SetLogger(NewLogger(log15.Root()))
}
Example #4
0
func init() {
	dlog.SetLogger(logrus.New())
}
Example #5
0
func init() {
	dlog.SetLogger(NewLogger(protolog.NewStandardLogger(protolog.NewFileFlusher(os.Stderr))))
}
Example #6
0
func init() {
	dlog.SetLogger(&logger{})
}