Log is a simple go logging package that is a wrapper aroung slog.
go get github.com/RevittCo/logYou can create your own handler for use with this package. Just make it implement this interface.
type Handler interface {
Enabled(ctx context.Context, l slog.Level) bool
Handle(ctx context.Context, r slog.Record) error
WithAttrs(attrs []slog.Attr) slog.Handler
WithGroup(name string) slog.Handler
}log.SetDefault(log.NewLogger(log.NewTerminalHandler(os.Stdout, log.LevelInfo)))
log.Info("logger initialised")