package testing

import "github.com/go-logr/logr/testing"

Index

Functions

func NewTestLogger

func NewTestLogger(t *testing.T) logr.Logger

NewTestLogger returns a logr.Logger that prints through a testing.T object. Info logs are only enabled at V(0).

Source Files

test.go

Version
v1.0.0
Published
Jul 6, 2021
Platform
linux/amd64
Imports
3 packages
Last checked
2 hours ago

Tools for package owners.