slogx

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SensitiveData

func SensitiveData(key string, value any) slog.Attr

Types

type Logger

type Logger struct {
	Logger        *slog.Logger
	Type          Type
	Name          string
	SensitiveData bool
}

func (*Logger) Debug

func (l *Logger) Debug(ctx context.Context, msg string, args ...any)

func (*Logger) Error

func (l *Logger) Error(ctx context.Context, msg string, args ...any)

func (*Logger) Info

func (l *Logger) Info(ctx context.Context, msg string, args ...any)

func (*Logger) Log

func (l *Logger) Log(ctx context.Context, level slog.Level, msg string, args ...any)

func (*Logger) Warn

func (l *Logger) Warn(ctx context.Context, msg string, args ...any)

type Type

type Type int
const (
	TypeNone Type = iota
	TypeMiddleware
)

Jump to

Keyboard shortcuts

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