plog

package
v0.0.0-...-3f873ad Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 5 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
}

func Ctx

func Ctx(ctx context.Context) *Logger

func NewDefaultLogger

func NewDefaultLogger() *Logger

func NewLogger

func NewLogger(logger zerolog.Logger) *Logger

func (*Logger) Attr

func (t *Logger) Attr(k string, v any) *Logger

func (*Logger) Debugf

func (t *Logger) Debugf(format string, a ...any)

func (*Logger) Errorf

func (t *Logger) Errorf(format string, a ...any)

func (*Logger) GetLevel

func (t *Logger) GetLevel() zerolog.Level

func (*Logger) Infof

func (t *Logger) Infof(format string, a ...any)

func (*Logger) Levelf

func (t *Logger) Levelf(level zerolog.Level, format string, a ...any)

func (*Logger) Logger

func (t *Logger) Logger() zerolog.Logger

func (*Logger) Msgf

func (t *Logger) Msgf(format string, a ...any) string

func (*Logger) Prefix

func (t *Logger) Prefix() string

func (*Logger) Warnf

func (t *Logger) Warnf(format string, a ...any)

func (*Logger) WithContext

func (t *Logger) WithContext(ctx context.Context) context.Context

func (*Logger) WithPrefix

func (t *Logger) WithPrefix(prefix string) *Logger

Jump to

Keyboard shortcuts

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