log

package
v0.0.0-...-2b14389 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...OptionFn) (l logr.Logger, err error)

New creates a new logger with the given options.

Types

type Config

type Config struct {
	Debug     bool
	Verbosity int
}

Config are the options for creating a logger with New.

type OptionFn

type OptionFn func(*Config)

OptionFn is a function that configures a logger for New.

func WithConfig

func WithConfig(config *Config) OptionFn

WithConfig overrides all options.

Jump to

Keyboard shortcuts

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