loggermiddleware

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2020 License: MIT Imports: 3 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

middleware to add context aware logger to your context

also support 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