Documentation ¶
Overview ¶
The Test package is used for testing logrus. It is here for backwards compatibility from when logrus' organization was upper-case. Please use lower-case logrus and the `null` package instead of this one.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hook ¶
type Hook struct { // Entries is an array of all entries that have been received by this hook. // For safe access, use the AllEntries() method, rather than reading this // value directly. Entries []*logrus.Entry // contains filtered or unexported fields }
Hook is a hook designed for dealing with logs in test scenarios.
func NewNullLogger ¶
NewNullLogger creates a discarding logger and installs the test hook.
func (*Hook) AllEntries ¶
AllEntries returns all entries that were logged.
Click to show internal directories.
Click to hide internal directories.