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