zaplogger

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 7 Imported by: 3

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) Ctx added in v0.0.7

func (zl *ZapLogger) Ctx(ctx context.Context) helpers.ILogger

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) Start added in v0.0.16

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

func (*ZapLogger) StopError added in v0.0.16

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

func (*ZapLogger) StopSuccess added in v0.0.16

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

func (*ZapLogger) Success

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

func (*ZapLogger) Warning

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

type ZapLoggerWithCtx added in v0.0.7

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

func (*ZapLoggerWithCtx) Ctx added in v0.0.7

func (*ZapLoggerWithCtx) Debug added in v0.0.7

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

func (*ZapLoggerWithCtx) Error added in v0.0.7

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

func (*ZapLoggerWithCtx) Fatal added in v0.0.7

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

func (*ZapLoggerWithCtx) GetLevel added in v0.0.7

func (zl *ZapLoggerWithCtx) GetLevel() string

func (*ZapLoggerWithCtx) GetWriter added in v0.0.7

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

func (*ZapLoggerWithCtx) Info added in v0.0.7

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

func (*ZapLoggerWithCtx) LoggerName added in v0.0.7

func (zl *ZapLoggerWithCtx) LoggerName() string

func (*ZapLoggerWithCtx) SetLevel added in v0.0.7

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

func (*ZapLoggerWithCtx) SetWriter added in v0.0.7

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

func (*ZapLoggerWithCtx) Start added in v0.0.16

func (zl *ZapLoggerWithCtx) Start(msg string, details ...helpers.IDetails)

func (*ZapLoggerWithCtx) StopError added in v0.0.16

func (zl *ZapLoggerWithCtx) StopError(msg string, details ...helpers.IDetails)

func (*ZapLoggerWithCtx) StopSuccess added in v0.0.16

func (zl *ZapLoggerWithCtx) StopSuccess(msg string, details ...helpers.IDetails)

func (*ZapLoggerWithCtx) Success added in v0.0.7

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

func (*ZapLoggerWithCtx) Warning added in v0.0.7

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

Jump to

Keyboard shortcuts

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