logging

package
v1.47.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicAccessLogger added in v1.17.0

func BasicAccessLogger(handler http.Handler, format string, extraFields log.ExtraFieldsGeneratorFunc) (http.Handler, error)

BasicAccessLogger configures the GitLab pages basic HTTP access logger middleware

func ConfigureLogging

func ConfigureLogging(format string, verbose bool) error

ConfigureLogging will initialize the system logger.

func LogRequest added in v1.10.0

func LogRequest(r *http.Request) *logrus.Entry

LogRequest will inject request host and path to the logged messages

Types

This section is empty.

Jump to

Keyboard shortcuts

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