logging

package
v0.0.0-...-4a5e41d Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 6 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequestLogger

func RequestLogger() func(next http.Handler) http.Handler

RequestLogger writes HTTP request/response information to the log. Making it possible to trace each individual request from request, to action, to reply.

func WithContext

func WithContext(ctx context.Context) *logrus.Entry

WithContext logs the request ID if present in the context. If there is not request id it will not do anything.

Types

This section is empty.

Jump to

Keyboard shortcuts

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