package logtest

import "github.com/containerd/containerd/log/logtest"

Index

Functions

func WithT

func WithT(ctx context.Context, t testing.TB) context.Context

WithT adds a logging hook for the given test Changes debug level to debug, clears output, and outputs all log messages as test logs.

Source Files

context.go log_hook.go

Version
v1.6.6
Published
Jun 6, 2022
Platform
js/wasm
Imports
9 packages
Last checked
44 minutes ago

Tools for package owners.