logging

package
v1.17.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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