httplog

package module
v0.0.0-...-43824ba Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 License: MIT Imports: 11 Imported by: 0

README

go-chi-httplog-zap

Small but powerful structured logging package for HTTP request logging in Go. It is based on go-chi/httplog but uses uber-go/zap instead of rs/zerolog.

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogEntry

func LogEntry(ctx context.Context) zap.SugaredLogger

func LogEntrySetField

func LogEntrySetField(ctx context.Context, key string, value interface{})

func LogEntrySetFields

func LogEntrySetFields(ctx context.Context, fields map[string]interface{})

func RawLogEntry

func RawLogEntry(ctx context.Context) zap.Logger

func ZapRequestLogger

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

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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