From a279ebafa6aef6a9d62e51ba02f397316e6f1838 Mon Sep 17 00:00:00 2001 From: Alex Haynes Date: Tue, 13 Jun 2017 13:28:47 -0500 Subject: [PATCH] Update hook name There is no hooks/null --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cbe8b69..ed03178 100644 --- a/README.md +++ b/README.md @@ -449,13 +449,13 @@ Logrus has a built in facility for asserting the presence of log messages. This ```go import( "github.com/sirupsen/logrus" - "github.com/sirupsen/logrus/hooks/null" + "github.com/sirupsen/logrus/hooks/test" "github.com/stretchr/testify/assert" "testing" ) func TestSomething(t*testing.T){ - logger, hook := null.NewNullLogger() + logger, hook := test.NewNullLogger() logger.Error("Helloerror") assert.Equal(t, 1, len(hook.Entries))