repositorypackage
0.0.0-20240723172933-83366b5ddcd2
Repository: https://github.com/kevinburke/slogdefault.git
Documentation: pkg.go.dev
# README
slogdefault
This is a trivial library that exposes the standard library's
log/slog.Default()
and makes it customizable.
Usage
h := slogdefault.NewHandler(output, &slog.HandlerOptions{/* ... */}
logger := slog.New(h)
logger.Info("test message")
Use this to add source lines, change the log level, chain handlers, etc.