logger

package
v0.1.6-build-testing-2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 7 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 Initialize added in v0.1.0

func Initialize()

func LoggerWithNodeAndJobInfo added in v0.1.0

func LoggerWithNodeAndJobInfo(nodeId string, jobId string) zerolog.Logger

func LoggerWithRuntimeInfo added in v0.1.0

func LoggerWithRuntimeInfo(runtimeInfo string) zerolog.Logger

Types

type Color added in v0.1.0

type Color uint8

Color represents a text color.

const (
	Black Color = iota + 30
	Red
	Green
	Yellow
	Blue
	Magenta
	Cyan
	White
)

Foreground colors.

func (Color) Add added in v0.1.0

func (c Color) Add(s string) string

Add adds the coloring to the given string.

Jump to

Keyboard shortcuts

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