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.
Click to show internal directories.
Click to hide internal directories.