logger

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ZapFormatter

type ZapFormatter struct {
	L *zap.Logger
}

func (*ZapFormatter) NewLogEntry

func (z *ZapFormatter) NewLogEntry(r *http.Request) middleware.LogEntry

type ZapLogEntry

type ZapLogEntry struct {
	L       *zap.Logger
	ID      string
	Request *http.Request
}

func (*ZapLogEntry) Panic

func (z *ZapLogEntry) Panic(v interface{}, stack []byte)

func (*ZapLogEntry) Write

func (z *ZapLogEntry) 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