logger

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ZLWrapper

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

ZLWrapper wraps up a logging library to implement our (pkg/log).ZLWrapper type.

func New

func New(zl zerolog.Logger) *ZLWrapper

New returns a new *ZLWrapper.

func (*ZLWrapper) Debug

func (l *ZLWrapper) Debug() log.Author

func (*ZLWrapper) Err

func (l *ZLWrapper) Err(err error) log.Author

func (*ZLWrapper) Error

func (l *ZLWrapper) Error() log.Author

func (*ZLWrapper) Info

func (l *ZLWrapper) Info() log.Author

func (*ZLWrapper) Warn

func (l *ZLWrapper) Warn() log.Author

type ZLWriter

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

func (ZLWriter) Dur

func (w ZLWriter) Dur(k string, d time.Duration) log.Author

func (ZLWriter) Err

func (w ZLWriter) Err(err error) log.Author

func (ZLWriter) Error

func (w ZLWriter) Error(k string, v error) log.Author

func (ZLWriter) Float64

func (w ZLWriter) Float64(k string, v float64) log.Author

func (ZLWriter) Int

func (w ZLWriter) Int(k string, v int) log.Author

func (ZLWriter) Interface

func (w ZLWriter) Interface(k string, v any) log.Author

func (ZLWriter) Msgf

func (w ZLWriter) Msgf(format string, args ...any)

func (ZLWriter) Str

func (w ZLWriter) Str(k, v string) log.Author

func (ZLWriter) Stringer

func (w ZLWriter) Stringer(k string, v fmt.Stringer) log.Author

Jump to

Keyboard shortcuts

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