A zerolog handler for slog
package main
import (
"log/slog"
"github.com/phsym/zeroslog"
)
func main() {
logger := slog.New(
zeroslog.NewJsonHandler(os.Stderr, &zeroslog.HandlerOptions{Level: slog.LevelDebug}),
)
slog.SetDefault(logger)
slog.Info("Hello world!", "foo", "bar")
}