Versions in this module Expand all Collapse all v1 v1.0.0 Sep 5, 2023 Changes in this version + const ALERT + const CRITICAL + const DEBUG + const EMERGENCY + const ERROR + const INFO + const NOTICE + const WARNING + func GetLogger(ctx context.Context) *slog.Logger + func Logging(hOpts *HandlerOptions, mOpts *MiddlewareOptions) func(http.Handler) http.Handler + func ParseLogLevel(value string) slog.Leveler + func ReplaceLogLevel(_ []string, a slog.Attr) slog.Attr + func WithLogger(ctx context.Context, logger *slog.Logger) context.Context + func WithTrace(logger *slog.Logger, span trace.Span, googleProjectID string) *slog.Logger + type Handler struct + func NewHandler(opts *HandlerOptions) *Handler + func (h *Handler) Enabled(ctx context.Context, level slog.Level) bool + func (h *Handler) Handle(ctx context.Context, r slog.Record) error + func (h *Handler) WithAttrs(attrs []slog.Attr) slog.Handler + func (h *Handler) WithGroup(name string) slog.Handler + type HandlerOptions struct + AddSource bool + MinLevel slog.Leveler + ServiceName string + ServiceVersion string + type MiddlewareOptions struct + AddHTTPRequest bool + AddTrace bool + GCPProjectID string + type Stack []uintptr + func CaptureStack() *Stack + func (s *Stack) Slice() []string + func (s *Stack) String() string