NewNullLogger creates a discarding logger and installs the test hook.
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.
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.