zap

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WithDisableLogging taskset.Property = func(task *taskset.Task) {
	task.ModifyProperty(disableLoggingProperty{}, func(_ interface{}) interface{} {
		return struct{}{}
	})
}

WithDisableLogging disables logging for a particular task.

Functions

func NewLogger

func NewLogger(logger *zap.Logger) taskset.Middleware

NewLogger creates a logging middleware. It will log an info message when a task is started and successfully finished, and error message when a task is failed, and a debug message for every depend() call.

Logging can be disabled for a particular task using WithDisableLogging.

Types

This section is empty.

Jump to

Keyboard shortcuts

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