logging

package
v0.0.0-...-8922687 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(level zap.AtomicLevel, development bool) (*zap.Logger, error)

New generates a new logger from a standard configuration

func Request

func Request(logger *zap.Logger) func(next http.Handler) http.Handler

Request is an HTTP middleware to log requests and responses

Types

type RequestLoggerEntry

type RequestLoggerEntry struct {
	Logger *zap.Logger
}

func (*RequestLoggerEntry) Panic

func (l *RequestLoggerEntry) Panic(v interface{}, stack []byte)

func (*RequestLoggerEntry) Write

func (l *RequestLoggerEntry) Write(status, bytes int, headers http.Header, elapsed time.Duration, _ interface{})

Jump to

Keyboard shortcuts

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