diff --git a/example_hook_test.go b/example_hook_test.go index 4e4ea1d..28bd8ea 100644 --- a/example_hook_test.go +++ b/example_hook_test.go @@ -9,6 +9,7 @@ import ( "os" ) +// An example on how to use a hook func Example_hook() { var log = logrus.New() log.Formatter = new(logrus.TextFormatter) // default