log

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debug(msg string, keyAndValues ...interface{})
	Info(msg string, keyAndValues ...interface{})
	Warn(msg string, keyAndValues ...interface{})
	Error(msg string, keyAndValues ...interface{})
	Fatal(msg string, keyAndValues ...interface{})
}

type LoggingHandler

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

func NewLoggingHandler

func NewLoggingHandler(handler http.Handler, logger Logger) *LoggingHandler

func (*LoggingHandler) ServeHTTP

func (h *LoggingHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ZapLogger

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

func NewZapLogger

func NewZapLogger(log *zap.Logger) ZapLogger

func (ZapLogger) Debug

func (l ZapLogger) Debug(msg string, keyAndValues ...interface{})

func (ZapLogger) Error

func (l ZapLogger) Error(msg string, keyAndValues ...interface{})

func (ZapLogger) Fatal

func (l ZapLogger) Fatal(msg string, keyAndValues ...interface{})

func (ZapLogger) Info

func (l ZapLogger) Info(msg string, keyAndValues ...interface{})

func (ZapLogger) Warn

func (l ZapLogger) Warn(msg string, keyAndValues ...interface{})

Jump to

Keyboard shortcuts

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