logger

package
v0.3.20 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureLogging added in v0.3.20

func ConfigureLogging(mode Logmode)

func ConfigureTestLogging

func ConfigureTestLogging(t tTesting)

ConfigureTestLogging allows logs to be associated with individual tests

func ContextWithNodeIDLogger

func ContextWithNodeIDLogger(ctx context.Context, nodeID string) context.Context

ContextWithNodeIDLogger will return a context with nodeID is added to the logging context.

func LogStream

func LogStream(ctx context.Context, r io.Reader)

Types

type Logmode added in v0.3.20

type Logmode string
const (
	LogModeDefault  Logmode = "default"
	LogModeStation  Logmode = "station"
	LogModeJSON     Logmode = "json"
	LogModeCombined Logmode = "combined"
	LogModeEvent    Logmode = "event"
)

Available logging modes

func ParseLogmode added in v0.3.20

func ParseLogmode(s string) (Logmode, error)

Directories

Path Synopsis
testpackage

Jump to

Keyboard shortcuts

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