diff --git a/logrus/option.go b/logrus/option.go index ede7e8a..3308a83 100644 --- a/logrus/option.go +++ b/logrus/option.go @@ -62,13 +62,13 @@ type config struct { } func defaultConfig() *config { - // std logger - stdLogger := logrus.StandardLogger() + // new logger + logger := logrus.New() // default json format - stdLogger.SetFormatter(new(logrus.JSONFormatter)) + logger.SetFormatter(new(logrus.JSONFormatter)) return &config{ - logger: logrus.StandardLogger(), + logger: logger, hooks: []logrus.Hook{}, } }