Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hook ¶
test.Hook is a hook designed for dealing with logs in test scenarios.
func NewLocal ¶
Installs a test hook for a given local logger.
func NewNullLogger ¶
Creates a discarding logger and installs the test hook.
func (*Hook) LastEntry ¶
LastEntry returns the last entry that was logged or nil.
Click to show internal directories.
Click to hide internal directories.