logger

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() logr.Logger

func Discard

func Discard() logr.Logger

func FromContext

func FromContext(ctx context.Context) logr.Logger

func New

func New(optFns ...func(*Options)) logr.Logger

func NewContext

func NewContext(ctx context.Context, logger logr.Logger) context.Context

func SetDefault

func SetDefault(log logr.Logger)

func WithStream

func WithStream(logger logr.Logger, gstmID string) logr.Logger

func WithTrace

func WithTrace(logger logr.Logger, traceID string) logr.Logger

Types

type Options

type Options struct {
	Output           io.Writer
	VerbosityLevel   int
	IncludeFileLine  bool
	IncludeTimestamp bool
}

Jump to

Keyboard shortcuts

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