logext

package
v1.11.4 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConditionalWriter added in v1.2.0

func NewConditionalWriter(fields log.Fields, out Output, condition bool) io.Writer

NewConditionalWriter creates a new log writer that only writes when the given condition is met or debug is enabled.

func NewWriter

func NewWriter(fields log.Fields, out Output) io.Writer

NewWriter creates a new log writer.

Types

type Output added in v0.174.0

type Output int

Output type of the log output.

const (
	// Info usually is used with stdout.
	Info Output = iota

	// Error usually is used with stderr.
	Error
)

Jump to

Keyboard shortcuts

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