log

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogMiddleware

type LogMiddleware struct {
	// contains filtered or unexported fields
}

func New

func New(logger Logger, options ...Option) *LogMiddleware

func (*LogMiddleware) Middleware

type Logger

type Logger interface {
	Info(v any, logValues ...string)
	Error(e error, logValues ...string)
}

type Option added in v0.0.2

type Option = func(mw *LogMiddleware) *LogMiddleware

func LogAdditionalValues added in v0.0.2

func LogAdditionalValues(keys ...any) Option

func LogParam added in v0.0.2

func LogParam() Option

func SetTimeFormat added in v0.0.2

func SetTimeFormat(timeFormat string) (Option, error)

Directories

Path Synopsis
Package mock_log is a generated GoMock package.
Package mock_log is a generated GoMock package.

Jump to

Keyboard shortcuts

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