Help us shape the future of Go! Take the 2026 Go Developer Survey

logger

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: Apache-2.0 Imports: 4 Imported by: 63

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(opts Options) logr.Logger

NewLogger returns a logger configured with the given Options, and timestamps set to the ISO8601 format.

Types

type Options added in v0.6.0

type Options struct {
	LogEncoding string
	LogLevel    string
}

Options contains the configuration options for the logger.

func (*Options) BindFlags added in v0.6.0

func (o *Options) BindFlags(fs *pflag.FlagSet)

BindFlags will parse the given flagset for logger option flags and set the Options accordingly.

Jump to

Keyboard shortcuts

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