mzap

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeLogger

func InitializeLogger() mlog.Logger

InitializeLogger initializes our log layer and returns it

Types

type ZapLogger

type ZapLogger struct {
	Logger *zap.SugaredLogger
}

ZapLogger is a wrapper of zap.SugaredLogger.

func (*ZapLogger) Debug

func (l *ZapLogger) Debug(args ...any)

Debug implements Debug Logger interface function.

func (*ZapLogger) Debugf

func (l *ZapLogger) Debugf(format string, args ...any)

Debugf implements Debugf Logger interface function.

func (*ZapLogger) Debugln

func (l *ZapLogger) Debugln(args ...any)

Debugln implements Debugln Logger interface function

func (*ZapLogger) Error

func (l *ZapLogger) Error(args ...any)

Error implements Error Logger interface function.

func (*ZapLogger) Errorf

func (l *ZapLogger) Errorf(format string, args ...any)

Errorf implements Errorf Logger interface function.

func (*ZapLogger) Errorln

func (l *ZapLogger) Errorln(args ...any)

Errorln implements Errorln Logger interface function

func (*ZapLogger) Fatal

func (l *ZapLogger) Fatal(args ...any)

Fatal implements Fatal Logger interface function.

func (*ZapLogger) Fatalf

func (l *ZapLogger) Fatalf(format string, args ...any)

Fatalf implements Fatalf Logger interface function.

func (*ZapLogger) Fatalln

func (l *ZapLogger) Fatalln(args ...any)

Fatalln implements Fatalln Logger interface function

func (*ZapLogger) Info

func (l *ZapLogger) Info(args ...any)

Info implements Info Logger interface function.

func (*ZapLogger) Infof

func (l *ZapLogger) Infof(format string, args ...any)

Infof implements Infof Logger interface function.

func (*ZapLogger) Infoln

func (l *ZapLogger) Infoln(args ...any)

Infoln implements Infoln Logger interface function.

func (*ZapLogger) Warn

func (l *ZapLogger) Warn(args ...any)

Warn implements Warn Logger interface function.

func (*ZapLogger) Warnf

func (l *ZapLogger) Warnf(format string, args ...any)

Warnf implements Warnf Logger interface function.

func (*ZapLogger) Warnln

func (l *ZapLogger) Warnln(args ...any)

Warnln implements Warnln Logger interface function

func (*ZapLogger) WithFields

func (l *ZapLogger) WithFields(fields ...any) mlog.Logger

WithFields adds structured context to the logger. It returns a new logger and leaves the original unchanged.

Jump to

Keyboard shortcuts

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