logr

package
v0.0.0-...-8a4f1d7 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogEntry

func GetLogEntry(r *http.Request) logr.Logger

func LogEntrySetField

func LogEntrySetField(r *http.Request, key string, value interface{})

func LogEntrySetFields

func LogEntrySetFields(r *http.Request, keysAndValues ...interface{})

func NewLogger

func NewLogger(log logr.Logger, geodb *geoip2.Reader) func(next http.Handler) http.Handler

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func (*Logger) NewLogEntry

func (l *Logger) NewLogEntry(r *http.Request) middleware.LogEntry

type LogrEntry

type LogrEntry struct {
	// contains filtered or unexported fields
}

func (*LogrEntry) Panic

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

func (*LogrEntry) Write

func (l *LogrEntry) Write(status, bytes int, header http.Header, elapsed time.Duration, extra interface{})

Jump to

Keyboard shortcuts

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