log

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Error(args ...any)
	Errorw(msg string, keysAndValues ...any)

	Debug(args ...any)
	Debugw(msg string, keysAndValues ...any)

	Info(args ...any)
	Infow(msg string, keysAndValues ...any)

	Warn(args ...any)
	Warnw(msg string, keysAndValues ...any)
}

func NewLogger

func NewLogger(verbose bool) Logger

Builds a new logger. The format will difer based on the verbose flag.

type StepLogger

type StepLogger interface {
	Step(string)
	Stepf(string, ...any)
	Warn(string)
	Warnf(string, ...any)
	Info(string)
	Infof(string, ...any)
	Error(error)
}

Specific logger interface use by deployment jobs to document the deployment process.

func NewStepLogger

func NewStepLogger(writer io.Writer) StepLogger

Instantiates a new step logger to provide a simple way to build a deployment logfile.

Jump to

Keyboard shortcuts

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