loggerx

package
v0.0.151 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: Apache-2.0 Imports: 11 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 {
	*slog.Logger
}

func NewDefaultLogger

func NewDefaultLogger() *Logger

func (*Logger) Debug

func (l *Logger) Debug(ctx context.Context, msg string, kvs ...attribute.KeyValue)

func (*Logger) Error

func (l *Logger) Error(ctx context.Context, msg string, kvs ...attribute.KeyValue)

func (*Logger) Info

func (l *Logger) Info(ctx context.Context, msg string, kvs ...attribute.KeyValue)

func (*Logger) Panic

func (l *Logger) Panic(ctx context.Context, msg string, kvs ...attribute.KeyValue) *Logger

func (*Logger) Warn

func (l *Logger) Warn(ctx context.Context, msg string, kvs ...attribute.KeyValue)

func (*Logger) WithError

func (l *Logger) WithError(err error) *Logger

func (*Logger) WithErrors

func (l *Logger) WithErrors(errs ...error) *Logger

func (*Logger) WithFields

func (l *Logger) WithFields(kvs ...attribute.KeyValue) *Logger

func (*Logger) WithSpanStartOptions

func (l *Logger) WithSpanStartOptions(opts ...trace.SpanStartOption) *Logger

func (*Logger) WithStackTrace

func (l *Logger) WithStackTrace() *Logger

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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