logger

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteString added in v1.4.4

func ByteString(key string, value []byte) zap.Field

func Count

func Count(count int) zap.Field

func Error

func Error(err error) zap.Field

func Float64 added in v1.4.4

func Float64(key string, value float64) zap.Field

func Int

func Int(key string, value int64) zap.Field

func String

func String(key, value string) zap.Field

Types

type Logger

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

func NewLogger

func NewLogger(logLevel, app string) *Logger

func NewNop

func NewNop() *Logger

func NewTestLogger

func NewTestLogger(w io.Writer) *Logger

func WrapLogger added in v1.3.0

func WrapLogger(l *zap.Logger) *Logger

func (*Logger) Debug

func (l *Logger) Debug(msg string, fields ...zap.Field)

func (*Logger) Error

func (l *Logger) Error(msg string, err error, extraFields ...zap.Field)

func (*Logger) Fatal

func (l *Logger) Fatal(msg string, err error)

func (*Logger) Info

func (l *Logger) Info(msg string, fields ...zap.Field)

func (*Logger) Log

func (l *Logger) Log(keyvals ...interface{}) error

func (*Logger) NamedLog added in v1.3.0

func (l *Logger) NamedLog(name string) *Logger

func (*Logger) Panic

func (l *Logger) Panic(msg string, fields ...zap.Field)

func (*Logger) StdLog

func (l *Logger) StdLog(name string) *log.Logger

func (*Logger) Sync

func (l *Logger) Sync()

Jump to

Keyboard shortcuts

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