httplogger

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: MIT Imports: 6 Imported by: 14

Documentation

Overview

Package httplogger implements a middleware that logs the incoming HTTP request & its duration using go-ethereum-log or logrus

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggingMiddleware

func LoggingMiddleware(next http.Handler) http.Handler

LoggingMiddleware logs the incoming HTTP request & its duration.

func LoggingMiddlewareLogrus added in v0.4.5

func LoggingMiddlewareLogrus(logger *logrus.Entry, next http.Handler) http.Handler

LoggingMiddlewareLogrus logs the incoming HTTP request & its duration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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