grab

package
v0.14.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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

func Log(w io.Writer, level slog.Level) func()

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL