gglogchimiddleware

package module
v0.0.0-...-b91b859 Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: MIT Imports: 5 Imported by: 0

README

GGLog - Chi Middleware

Using a GGLog, implement a logging middleware for the Chi framework.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMiddlewareForLogger

func CreateMiddlewareForLogger(logger gglog.GGLog) func(next http.Handler) http.Handler

CreateMiddlewareForLogger will use a GGLog for Chi logging middleware.

Types

type ChiGGLog

type ChiGGLog struct {
	Logger gglog.GGLog
}

ChiGGLog structures and logs Chi requests using gglog.

func (ChiGGLog) NewLogEntry

func (l ChiGGLog) NewLogEntry(r *http.Request) middleware.LogEntry

NewLogEntry will create a new log entry.

Jump to

Keyboard shortcuts

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