log

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RolloutKey defines the key for the rollout field
	RolloutKey = "rollout"
	// NamespaceKey defines the key for the namespace field
	NamespaceKey = "namespace"

	ClusterKey = "cluster"
)

Variables

This section is empty.

Functions

func SetKLogLevel

func SetKLogLevel(klogLevel int)

SetKLogLevel set the klog level for the k8s go-client

func WithRollout

func WithRollout(rollout *v1alpha1.Rollout) *log.Entry

WithRollout returns a logging context for Rollouts

func WithVersionFields

func WithVersionFields(entry *log.Entry, r *v1alpha1.Rollout) *log.Entry

Types

type RedactorFormatter

type RedactorFormatter struct {
	// contains filtered or unexported fields
}

func (*RedactorFormatter) Format

func (f *RedactorFormatter) Format(e *log.Entry) ([]byte, error)

Jump to

Keyboard shortcuts

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