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.7.0-rc.1
Published
Mar 2, 2023
Platform
js/wasm
Imports
10 packages
Last checked
1 day ago

Tools for package owners.