log

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 4 Imported by: 8

Documentation

Overview

Package log provides structured logging

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(component string, opts ...Option) logr.Logger

NewLogger creates a logger with the provided opts and key value pairs

Types

type Option

type Option func(*sink.Sink)

Option is a configuration option

func WithOutput

func WithOutput(w io.Writer) Option

WithOutput sets the output of the internal sink of the logger

func WithVerbosity

func WithVerbosity(v int) Option

WithVerbosity sets the verbosity of the internal sink of the logger

Directories

Path Synopsis
Package static provides a simple static logger implementation for easy migration of existing pre-v2 code.
Package static provides a simple static logger implementation for easy migration of existing pre-v2 code.

Jump to

Keyboard shortcuts

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