zaplog

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ZapLogger

type ZapLogger struct {
	Zap *zap.SugaredLogger
	// contains filtered or unexported fields
}

func NewZapLogger

func NewZapLogger() *ZapLogger

DefaultLogger Return Default Sched Logger based on Zap's sugared logger

func (*ZapLogger) Debug

func (l *ZapLogger) Debug(message string, params ...interface{})

func (*ZapLogger) Error

func (l *ZapLogger) Error(message string, params ...interface{})

func (*ZapLogger) Fatal

func (l *ZapLogger) Fatal(message string, params ...interface{})

func (*ZapLogger) GetLevel added in v0.0.2

func (l *ZapLogger) GetLevel() logadapter.Log_Level

func (ZapLogger) GetPrefix added in v0.0.2

func (l ZapLogger) GetPrefix() string

func (*ZapLogger) Info

func (l *ZapLogger) Info(message string, params ...interface{})

func (*ZapLogger) New

func (l *ZapLogger) New(name string) (nl logadapter.Logger)

func (*ZapLogger) Panic

func (l *ZapLogger) Panic(message string, params ...interface{})

func (*ZapLogger) SetLevel added in v0.0.2

func (l *ZapLogger) SetLevel(lvl logadapter.Log_Level)

func (*ZapLogger) SetPrefix added in v0.0.2

func (l *ZapLogger) SetPrefix(name string)

func (*ZapLogger) Sync

func (l *ZapLogger) Sync()

func (*ZapLogger) Trace

func (l *ZapLogger) Trace(message string, params ...interface{})

func (*ZapLogger) Warn

func (l *ZapLogger) Warn(message string, params ...interface{})

func (*ZapLogger) With

func (l *ZapLogger) With(key string, value interface{}) logadapter.Logger

Jump to

Keyboard shortcuts

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