loggermiddleware

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2022 License: MIT Imports: 4 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MethodFieldName = "method"
View Source
var PathFieldName = "path"
View Source
var RequestIdFieldName = "request-id"

Functions

func AddZerologLoggerToContext

func AddZerologLoggerToContext(next http.Handler) http.Handler

AddZerologLoggerToContext is a middleware to add a context aware logger to your context.

also supports logging request ids, just assign RequestIdFromContextRetriever before using this

Types

This section is empty.

Jump to

Keyboard shortcuts

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