logger

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Stderr = struct{ io.Writer }{os.Stderr}
View Source
var Stdout = struct{ io.Writer }{os.Stdout}

Functions

func ContextWithNodeIDLogger

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

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

func LoggerTestLogger added in v0.1.26

func LoggerTestLogger(logBuffer *bytes.Buffer) zerolog.Logger

func LoggerWithNodeID added in v0.2.6

func LoggerWithNodeID(nodeID string) zerolog.Logger

func LoggerWithRuntimeInfo added in v0.1.0

func LoggerWithRuntimeInfo(runtimeInfo string) zerolog.Logger

Types

type JobEvent added in v0.1.9

type JobEvent struct {
	Type string      `json:"type"`
	Data interface{} `json:"data"`
	Node string      `json:"node"`
	Job  string      `json:"job"`
}

Jump to

Keyboard shortcuts

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