Back to godoc.org

Package log

v0.0.5
Latest Go to latest

The highest tagged major version is .

Published: Apr 28, 2020 | License: Apache-2.0 | Module: github.com/datastax/cassandra-data-apis

Index

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{})

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier