zerolog

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: CC0-1.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

Logger struct

func DefaultLogger

func DefaultLogger() *Logger

DefaultLogger return default value of logger

func New

func New(config *logger.Config, opts ...func(*logger.Config)) (*Logger, error)

New logger

func (*Logger) Debug

func (l *Logger) Debug(args ...interface{})

Debug function

func (*Logger) DebugWithFields

func (l *Logger) DebugWithFields(msg string, KV logger.KV)

DebugWithFields function

func (*Logger) Debugf

func (l *Logger) Debugf(format string, v ...interface{})

Debugf function

func (*Logger) Debugln

func (l *Logger) Debugln(args ...interface{})

Debugln function

func (*Logger) Error

func (l *Logger) Error(args ...interface{})

Error function

func (*Logger) ErrorWithFields

func (l *Logger) ErrorWithFields(msg string, KV logger.KV)

ErrorWithFields function

func (*Logger) Errorf

func (l *Logger) Errorf(format string, v ...interface{})

Errorf function

func (*Logger) Errorln

func (l *Logger) Errorln(args ...interface{})

Errorln function

func (*Logger) Errors

func (l *Logger) Errors(err error)

Errors function to log errors package

func (*Logger) Fatal

func (l *Logger) Fatal(args ...interface{})

Fatal function

func (*Logger) FatalWithFields

func (l *Logger) FatalWithFields(msg string, KV logger.KV)

FatalWithFields function

func (*Logger) Fatalf

func (l *Logger) Fatalf(format string, v ...interface{})

Fatalf function

func (*Logger) Fatalln

func (l *Logger) Fatalln(args ...interface{})

Fatalln function

func (*Logger) Info

func (l *Logger) Info(args ...interface{})

Info function

func (*Logger) InfoWithFields

func (l *Logger) InfoWithFields(msg string, KV logger.KV)

InfoWithFields function

func (*Logger) Infof

func (l *Logger) Infof(format string, v ...interface{})

Infof function

func (*Logger) Infoln

func (l *Logger) Infoln(args ...interface{})

Infoln function

func (*Logger) IsValid

func (l *Logger) IsValid() bool

IsValid check if Logger is created using constructor

func (*Logger) SetLevel

func (l *Logger) SetLevel(level logger.Level)

SetLevel for setting log level

func (*Logger) StdDebug

func (l *Logger) StdDebug(requestID string, contextID string, err error, metadata interface{}, message string)

StdDebug zerolog implementation for trace level log

func (*Logger) StdDebugf

func (l *Logger) StdDebugf(requestID string, contextID string, err error, metadata interface{}, format string, args ...interface{})

StdDebugf zerolog implementation for trace level log

func (*Logger) StdError

func (l *Logger) StdError(requestID string, contextID string, err error, metadata interface{}, message string)

StdError zerolog implementation for trace level log

func (*Logger) StdErrorf

func (l *Logger) StdErrorf(requestID string, contextID string, err error, metadata interface{}, format string, args ...interface{})

StdErrorf zerolog implementation for trace level log

func (*Logger) StdFatal

func (l *Logger) StdFatal(requestID string, contextID string, err error, metadata interface{}, message string)

StdFatal zerolog implementation for trace level log

func (*Logger) StdFatalf

func (l *Logger) StdFatalf(requestID string, contextID string, err error, metadata interface{}, format string, args ...interface{})

StdFatalf zerolog implementation for trace level log

func (*Logger) StdInfo

func (l *Logger) StdInfo(requestID string, contextID string, err error, metadata interface{}, message string)

StdInfo zerolog implementation for trace level log

func (*Logger) StdInfof

func (l *Logger) StdInfof(requestID string, contextID string, err error, metadata interface{}, format string, args ...interface{})

StdInfof zerolog implementation for trace level log

func (*Logger) StdTrace

func (l *Logger) StdTrace(requestID string, contextID string, err error, metadata interface{}, message string)

StdTrace zerolog implementation for trace level log

func (*Logger) StdTracef

func (l *Logger) StdTracef(requestID string, contextID string, err error, metadata interface{}, format string, args ...interface{})

StdTracef zerolog implementation for trace level log

func (*Logger) StdWarn

func (l *Logger) StdWarn(requestID string, contextID string, err error, metadata interface{}, message string)

StdWarn zerolog implementation for trace level log

func (*Logger) StdWarnf

func (l *Logger) StdWarnf(requestID string, contextID string, err error, metadata interface{}, format string, args ...interface{})

StdWarnf zerolog implementation for trace level log

func (*Logger) Warn

func (l *Logger) Warn(args ...interface{})

Warn function

func (*Logger) WarnWithFields

func (l *Logger) WarnWithFields(msg string, KV logger.KV)

WarnWithFields function

func (*Logger) Warnf

func (l *Logger) Warnf(format string, v ...interface{})

Warnf function

func (*Logger) Warnln

func (l *Logger) Warnln(args ...interface{})

Warnln function

Jump to

Keyboard shortcuts

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