log

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultLogLevel = logrus.WarnLevel

DefaultLogLevel is logrus warn level

Variables

View Source
var AllLevels = logrus.AllLevels
View Source
var ContextKey = contextKey{}

Functions

func Entry

func Entry(ctx context.Context) *logrus.Entry

Entry takes an context.Context and constructs a logrus.Entry from it, adding fields for task and subtask information

func IsDebugLevelEnabled added in v1.32.0

func IsDebugLevelEnabled() bool

IsDebugLevelEnabled returns true if debug level log is enabled.

func IsTraceLevelEnabled added in v1.32.0

func IsTraceLevelEnabled() bool

IsTraceLevelEnabled returns true if trace level log is enabled.

func KanikoLogLevel added in v1.32.0

func KanikoLogLevel() logrus.Level

KanikoLogLevel makes sure kaniko logs at least at Info level and at most Debug level (trace doesn't work with Kaniko)

func New added in v1.32.0

func New() *logrus.Logger

func SetupLogs added in v1.32.0

func SetupLogs(stdErr io.Writer, level string, timestamp bool, hook logrus.Hook) error

SetupLogs sets up logrus logger for skaffold command line

Types

type EventContext

type EventContext struct {
	Task    constants.Phase
	Subtask string
}

Jump to

Keyboard shortcuts

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