logger

package
v0.0.0-...-c9664ae Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoggerInterface

type LoggerInterface interface {
	Debug(msg interface{})
	Debugf(template string, args ...interface{})
	Info(msg interface{})
	Infof(template string, args ...interface{})
	Warn(msg interface{})
	Warnf(template string, args ...interface{})
	Error(msg interface{})
	Errorf(template string, args ...interface{})
	Fatal(msg interface{})
	Fatalf(template string, args ...interface{})
	Close() error
}

type ZapLogger

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

func NewZapLogger

func NewZapLogger(cfg *config.Log) (*ZapLogger, error)

func (*ZapLogger) Close

func (l *ZapLogger) Close() error

func (*ZapLogger) Debug

func (l *ZapLogger) Debug(msg interface{})

func (*ZapLogger) Debugf

func (l *ZapLogger) Debugf(msg string, args ...interface{})

func (*ZapLogger) Error

func (l *ZapLogger) Error(msg interface{})

func (*ZapLogger) Errorf

func (l *ZapLogger) Errorf(msg string, args ...interface{})

func (*ZapLogger) Fatal

func (l *ZapLogger) Fatal(msg interface{})

func (*ZapLogger) Fatalf

func (l *ZapLogger) Fatalf(msg string, args ...interface{})

func (*ZapLogger) Info

func (l *ZapLogger) Info(msg interface{})

func (*ZapLogger) Infof

func (l *ZapLogger) Infof(msg string, args ...interface{})

func (*ZapLogger) Warn

func (l *ZapLogger) Warn(msg interface{})

func (*ZapLogger) Warnf

func (l *ZapLogger) Warnf(msg string, args ...interface{})

Jump to

Keyboard shortcuts

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