Help us shape the future of Go! Take the 2026 Go Developer Survey

slogx

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 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