Documentation
¶
Overview ¶
Package grab provides temporarily grabbing the structured log output, in form of JSON output, and later restoring it to its original configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Log ¶
Log grabs any logging output and feeds it into the specified writer. Preferably, this writer should be a GinkgoWriter, so log output will show up only in case a test fails, but otherwise we stay silent. Log returns a function that must be deferred in order to restore the original default slog Logger.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.