rlog

package
v0.0.0-...-e6eca7e Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: GPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHandler

func AddHandler(nh slog.Handler)

func Error

func Error(err error) slog.Attr

Types

type Logger

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

func Component

func Component(name ...string) *Logger

func (*Logger) Debug

func (l *Logger) Debug(ctx context.Context, msg string, attrs ...slog.Attr)

func (*Logger) Error

func (l *Logger) Error(ctx context.Context, msg string, attrs ...slog.Attr)

func (*Logger) Info

func (l *Logger) Info(ctx context.Context, msg string, attrs ...slog.Attr)

func (*Logger) Nested

func (l *Logger) Nested(callNesting int) *Logger

func (*Logger) Slog

func (l *Logger) Slog() *slog.Logger

returns a new slog logger with the same attribures as the original logger TODO currently not logging function name

func (*Logger) Warn

func (l *Logger) Warn(ctx context.Context, msg string, attrs ...slog.Attr)

func (*Logger) With

func (l *Logger) With(attrs ...slog.Attr) *Logger

func (*Logger) WithComponent

func (log *Logger) WithComponent(name string) *Logger

Jump to

Keyboard shortcuts

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