logging

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VersionedMsgs interface {
	MonitoringStarted(monitorKind string)
	ProblemMonitoringForEvents(monitorKind string, err error)
	RequestingInstanceDrain(event *monitor.InterruptionEvent)
	SendingInterruptionEventToChannel(eventKind string)
} = versionedMsgsV1{}

Functions

func SetFormatVersion added in v1.18.0

func SetFormatVersion(version int) error

Types

type RoutingLevelWriter

type RoutingLevelWriter struct {
	io.Writer
	ErrWriter io.Writer
}

RoutingLevelWriter writes data to one of two locations based on an associated level value.

func (RoutingLevelWriter) WriteLevel

func (r RoutingLevelWriter) WriteLevel(l zerolog.Level, b []byte) (int, error)

WriteLevel if *l* is warning or higher then *b* is written to the error location, otherwise it is written to the default location.

Jump to

Keyboard shortcuts

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