alog

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: MIT Imports: 4 Imported by: 0

README

License

MIT License. See LICENSE for details.

Documentation

Index

Constants

View Source
const ErrorKey = "err"

Variables

This section is empty.

Functions

func Context

func Context(ctx context.Context, h slog.Handler) context.Context

func Debug

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

func Error

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

func Handler

func Handler(ctx context.Context) slog.Handler

func Info

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

func Log

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

func LogAttrs

func LogAttrs(ctx context.Context, level slog.Level, msg string, attrs ...slog.Attr)

func Warn

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

func With

func With(ctx context.Context, args ...any) context.Context

func WithAttrs

func WithAttrs(ctx context.Context, attrs ...slog.Attr) context.Context

func WithGroup

func WithGroup(ctx context.Context, groupName string) context.Context

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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