zaplogger

package
v0.0.0-...-cb424ea Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const LoggerName string = "zap"

Variables

This section is empty.

Functions

This section is empty.

Types

type ZapLogger

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

func NewZapLogger

func NewZapLogger() *ZapLogger

func (*ZapLogger) Debug

func (zl *ZapLogger) Debug(msg string, details ...helpers.IDetails)

func (*ZapLogger) Error

func (zl *ZapLogger) Error(msg string, details ...helpers.IDetails)

func (*ZapLogger) Fatal

func (zl *ZapLogger) Fatal(msg string, details ...helpers.IDetails)

func (*ZapLogger) GetLevel

func (zl *ZapLogger) GetLevel() string

func (*ZapLogger) GetWriter

func (zl *ZapLogger) GetWriter() *os.File

func (*ZapLogger) Info

func (zl *ZapLogger) Info(msg string, details ...helpers.IDetails)

func (*ZapLogger) LoggerName

func (zl *ZapLogger) LoggerName() string

func (*ZapLogger) SetLevel

func (zl *ZapLogger) SetLevel(level string) error

func (*ZapLogger) SetWriter

func (zl *ZapLogger) SetWriter(w *os.File)

func (*ZapLogger) Success

func (zl *ZapLogger) Success(msg string, details ...helpers.IDetails)

func (*ZapLogger) Warning

func (zl *ZapLogger) Warning(msg string, details ...helpers.IDetails)

Jump to

Keyboard shortcuts

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