Пример #1
0
func New() *Logger {
	log := Logger{Logger: *logrus.New()}

	log.Out = os.Stdout
	log.moduleStack = scopestack.NewScopeStack(1)

	return &log
}
Пример #2
0
func New() *Logger {
	log := Logger{
		Logger:   *logrus.New(),
		logHooks: make(logrus.LevelHooks),
	}

	log.Out = os.Stdout
	log.moduleStack = scopestack.NewScopeStack(1)

	return &log
}