The Test package is used for testing logrus. It provides a simple hooks which register logged messages.
Hook is a hook designed for dealing with logs in test scenarios.
NewGlobal installs a test hook for the global logger.
NewLocal installs a test hook for a given local logger.
NewNullLogger creates a discarding logger and installs the test hook.
AllEntries returns all entries that were logged.
LastEntry returns the last entry that was logged or nil.
Reset removes all Entries from this test hook.