logging

package
v0.0.0-...-fd2987a Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileNameFieldName       = "file"
	FolderPathFieldName     = "path"
	FileSizeFieldName       = "size"
	ListenAddressFieldName  = "listenAddress"
	ResultFieldName         = "result"
	StateFieldName          = "state"
	HTTPStatusCodeFieldName = "status_code"
	SystemCodeFieldName     = "code"
	RequestIDFieldName      = "req_id"

	MethodRequestFieldName        = "method"
	SchemeRequestFieldName        = "scheme"
	HostRequestFieldName          = "host"
	PathRequestFieldName          = "path"
	ProtocolRequestFieldName      = "protocol"
	RemoteAddressRequestFieldName = "remote_address"
	StatusCodeRequestFieldName    = "status_code"
	BytesWrittenRequestFieldName  = "bytes_written"
	DurationMSRequestFieldName    = "duration_ms"
)

Variables

This section is empty.

Functions

func ChiLogger

func ChiLogger(next http.Handler) http.Handler

ChiLogger returns a logger for Chi that uses the app's logger.

func SetupLogging

func SetupLogging()

SetupLogging sets up some global logging parameters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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