log

package
v0.0.0-...-1624629 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2019 License: MIT Imports: 5 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(v ...interface{})
	Debugf(format string, v ...interface{})
	Info(v ...interface{})
	Infof(format string, v ...interface{})
	Error(v ...interface{})
	Errorf(format string, v ...interface{})
}

func NewDefaultLogger

func NewDefaultLogger() Logger

func NewFileLogger

func NewFileLogger(path string) Logger

type ZapLogger

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

func NewLogger

func NewLogger(path string, level zapcore.Level) (*ZapLogger, error)

func (*ZapLogger) Debug

func (z *ZapLogger) Debug(v ...interface{})

func (*ZapLogger) Debugf

func (z *ZapLogger) Debugf(format string, v ...interface{})

func (*ZapLogger) Error

func (z *ZapLogger) Error(v ...interface{})

func (*ZapLogger) Errorf

func (z *ZapLogger) Errorf(format string, v ...interface{})

func (*ZapLogger) Info

func (z *ZapLogger) Info(v ...interface{})

func (*ZapLogger) Infof

func (z *ZapLogger) Infof(format string, v ...interface{})

Jump to

Keyboard shortcuts

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