package
2.130.1
Repository: https://github.com/kubernetes/klog.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package init registers the command line flags for k8s.io/klogr/testing in the flag.CommandLine.

# Functions

AnyToString overrides the default formatter for values that are not supported directly by klog.
BufferLogs controls whether log entries are captured in memory in addition to being printed.
NewConfig returns a configuration with recommended defaults and optional modifications.
NewLogger constructs a new logger for the given test interface.
NewTestContext returns a logger and context for use in a unit test case or benchmark.
Verbosity overrides the default verbosity level of 5.
VerbosityFlagName overrides the default -testing.v for the verbosity level.
VModulFlagName overrides the default -testing.vmodule for the per-module verbosity levels.

# Constants

LogError is the special value used for Error log entries.
LogInfo is the special value used for Info log entries.

# Variables

DefaultConfig is the global default logging configuration for a unit test.

# Structs

BufferTL implements TL with an in-memory buffer.
Config influences logging in a test logger.
LogEntry represents all information captured for a log entry.
NopTL implements TL with empty stubs.

# Interfaces

Buffer stores log entries as formatted text and structured data.
TL is the relevant subset of testing.TB.
Underlier is implemented by the LogSink of this logger.

# Type aliases

ConfigOption implements functional parameters for NewConfig.
Log contains log entries in the order in which they were generated.
LogType determines whether a log entry was created with an Error or Info call.