log

package
v0.0.0-...-702564b Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewSugaredLogger

func NewSugaredLogger() *zap.SugaredLogger

Types

type Logger

type Logger interface {
	Info(msg string)
	Debug(msg string)
	Error(msg string, err error)
}

type ZapLogger

type ZapLogger struct {
	*zap.SugaredLogger
}

func NewZapLogger

func NewZapLogger(sugaredLogger *zap.SugaredLogger) *ZapLogger

func (*ZapLogger) Debug

func (z *ZapLogger) Debug(msg string)

func (*ZapLogger) Error

func (z *ZapLogger) Error(msg string, err error)

func (*ZapLogger) Info

func (z *ZapLogger) Info(msg string)

Jump to

Keyboard shortcuts

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