Versions in this module Expand all Collapse all v0 v0.24.0 Dec 29, 2024 Changes in this version + func DefaultLogger() *slog.Logger + func New(options ...HandlerWrapOption) *slog.Logger + type BlogAPILogHandler struct + func NewBlogAPILogHandler(w io.Writer, handlerOption *slog.HandlerOptions) *BlogAPILogHandler + func (h *BlogAPILogHandler) Enabled(ctx context.Context, level slog.Level) bool + func (h *BlogAPILogHandler) Handle(ctx context.Context, r slog.Record) error + func (h *BlogAPILogHandler) WithAttrs(attrs []slog.Attr) slog.Handler + func (h *BlogAPILogHandler) WithGroup(name string) slog.Handler + type HandlerWrapOption func(slog.Handler) slog.Handler + func WithAltNRSlogTransactionalHandler(app *newrelic.Application, nrtx *newrelic.Transaction) HandlerWrapOption + func WithInnerHandler(innerHandler slog.Handler) HandlerWrapOption + func WithWriter(w io.Writer) HandlerWrapOption + type Logger struct + type PreHandle func(ctx context.Context, r *slog.Record) error