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