logger

package
v0.0.0-...-cb8e146 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogEntry

type LogEntry struct {
	*StructuredLogger
	// contains filtered or unexported fields
}

func (*LogEntry) Panic

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

func (*LogEntry) Write

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

type StructuredLogger

type StructuredLogger struct {
	Logger   middleware.LoggerInterface
	LogLevel logrus.Level
}

func NewLogger

func NewLogger(opts *config.ChromeServiceConfig, logger *logrus.Logger) *StructuredLogger

func (*StructuredLogger) NewLogEntry

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

Jump to

Keyboard shortcuts

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