From 1fb8c53680223cfc36138b62341b89f05f68f463 Mon Sep 17 00:00:00 2001 From: Albert Nigmatzianov Date: Sat, 2 Sep 2017 15:03:37 +0500 Subject: [PATCH 1/3] Fix typo in docs for New() --- logger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logger.go b/logger.go index fdaf8a6..ebd4caf 100644 --- a/logger.go +++ b/logger.go @@ -58,7 +58,7 @@ func (mw *MutexWrap) Disable() { // `Out` and `Hooks` directly on the default logger instance. You can also just // instantiate your own: // -// var log = &Logger{ +// var log = &logrus.Logger{ // Out: os.Stderr, // Formatter: new(JSONFormatter), // Hooks: make(LevelHooks), From e59e5eaa9258cb2e5f017c6ed05b886e8088cbd9 Mon Sep 17 00:00:00 2001 From: Albert Nigmatzianov Date: Sat, 2 Sep 2017 15:04:38 +0500 Subject: [PATCH 2/3] Fix typo in docs for New() --- logger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logger.go b/logger.go index ebd4caf..879b13a 100644 --- a/logger.go +++ b/logger.go @@ -60,7 +60,7 @@ func (mw *MutexWrap) Disable() { // // var log = &logrus.Logger{ // Out: os.Stderr, -// Formatter: new(JSONFormatter), +// Formatter: new(logrus.JSONFormatter), // Hooks: make(LevelHooks), // Level: logrus.DebugLevel, // } From 6137e6b13d2276ad043da248076c683ab81623a6 Mon Sep 17 00:00:00 2001 From: Albert Nigmatzianov Date: Sat, 2 Sep 2017 15:05:25 +0500 Subject: [PATCH 3/3] Fix typo in docs for New() --- logger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logger.go b/logger.go index 879b13a..71f8beb 100644 --- a/logger.go +++ b/logger.go @@ -61,7 +61,7 @@ func (mw *MutexWrap) Disable() { // var log = &logrus.Logger{ // Out: os.Stderr, // Formatter: new(logrus.JSONFormatter), -// Hooks: make(LevelHooks), +// Hooks: make(logrus.LevelHooks), // Level: logrus.DebugLevel, // } //