Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStructuredLogger

func NewStructuredLogger(logger *logrus.Logger) func(next http.Handler) http.Handler

NewStructuredLogger new struct

Types

type StructuredLogger

type StructuredLogger struct {
	Logger *logrus.Logger
}

StructuredLogger StructuredLogger

func (*StructuredLogger) NewLogEntry

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

NewLogEntry NewLogEntry

type StructuredLoggerEntry

type StructuredLoggerEntry struct {
	Logger logrus.FieldLogger
}

StructuredLoggerEntry StructuredLoggerEntry

func (*StructuredLoggerEntry) Panic

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

Panic Panic

func (*StructuredLoggerEntry) Write

func (l *StructuredLoggerEntry) Write(status, bytes int, elapsed time.Duration)

Write Write

Source Files