logwriter

package
v0.0.0-...-e270f0a Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetermineLogWriter

func DetermineLogWriter(s logr.LogSink) io.Writer

DetermineLogWriter tries to determine the technical writer used as log sink by unwrapping the sink and checking for the logging.LogWriter interface or a logrus wrapper.

Types

type LogWriter

type LogWriter interface {
	LogWriter() io.Writer
}

LogWriter is an optional interface the logr.LogSink of a passed logr.Logger can implement to expose the technical writer used as final log sink.

Jump to

Keyboard shortcuts

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