log

package
v1.8.17 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	LogFormat string
}

Options has klog format parameters.

func NewOptions

func NewOptions() *Options

NewOptions return new klog options.

func (*Options) AddFlags

func (o *Options) AddFlags()

AddFlags adds log-format flag.

func (*Options) Apply

func (o *Options) Apply() error

Apply set klog logger from LogFormat type.

func (*Options) Validate

func (o *Options) Validate() error

Validate validates the log-format flag.

Jump to

Keyboard shortcuts

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