WORK IN PROGRESS
go get github.com/phsym/slogctx@latest
package main
import (
"errors"
"log/slog"
"os"
"github.com/phsym/slogctx"
)
func main() {
logger := slog.New(
console.NewHandler(os.Stderr, &console.HandlerOptions{Level: slog.LevelDebug}),
)
slog.SetDefault(logger)
// TBD ...
}
See benchmark file for details.
TBD ...