Documentation ¶
Overview ¶
Package loggingtest provides functions to test the content of the logs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hook ¶
Hook is a hook designed for dealing with logs in test scenarios. It wraps logrus/hooks/test.Hook.
func NewNullLogger ¶
NewNullLogger creates a discarding logger and installs the test hook.
func (*Hook) GetAllLogs ¶
GetAllLogs returns all the logs collected by the hook as a string
func (*Hook) GetAllStructuredLogs ¶
GetAllStructuredLogs returns all the structured logs collected by the hook as a string
Click to show internal directories.
Click to hide internal directories.