middleware

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultLogger added in v0.0.2

func DefaultLogger() *log.Logger

DefaultLogger returns a `Logger` implementation backed by stdlib's log

func NewLoggerMiddleware

func NewLoggerMiddleware(next worker.Service, logger Logger) worker.Service

NewLoggerMiddleware returns a new loggerMiddleware.

Types

type Logger

type Logger interface {
	Printf(format string, v ...interface{})
}

Logger describes a logging interface allowing to implement different external, or custom logger.

Jump to

Keyboard shortcuts

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