logging

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithLogrus

func WithLogrus(l *log.Logger) func(*LogrusMiddleware)

func WithSlog added in v0.1.2

func WithSlog(l *slog.Logger) func(*SlogMiddleware)

Types

type LogrusMiddleware

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

func NewLogrus

func NewLogrus(opts ...LogrusOptionFunc) *LogrusMiddleware

func (*LogrusMiddleware) Middleware

func (m *LogrusMiddleware) Middleware(next http.Handler) http.Handler

type LogrusOptionFunc

type LogrusOptionFunc func(*LogrusMiddleware)

type SlogMiddleware added in v0.1.2

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

func NewSlog added in v0.1.2

func NewSlog(opts ...SlogOptionFunc) *SlogMiddleware

func (*SlogMiddleware) Middleware added in v0.1.2

func (m *SlogMiddleware) Middleware(next http.Handler) http.Handler

type SlogOptionFunc added in v0.1.2

type SlogOptionFunc func(*SlogMiddleware)

Jump to

Keyboard shortcuts

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