log

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package log provides a http logging middleware that uses zap

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMiddleware

func NewMiddleware(l *zap.Logger) func(next http.Handler) http.Handler

NewMiddleware instantiates a middleware function that logs all requests using the provided logger

func NewTestLogger

func NewTestLogger() (sugar *zap.SugaredLogger, out *observer.ObservedLogs)

NewTestLogger bootstraps a test logger that allows interrogation of output

Types

This section is empty.

Jump to

Keyboard shortcuts

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