Documentation
¶
Index ¶
- func AddToContext(ctx context.Context, logger *slog.Logger) context.Context
- func Config(conf any) slog.Attr
- func Err(err error) slog.Attr
- func FromContext(ctx context.Context) *slog.Logger
- func HealthStatus(status fmt.Stringer) slog.Attr
- func Panic(val any) slog.Attr
- func RPCMethod(method string) slog.Attr
- func RPCService(service string) slog.Attr
- func RPCSystem(system string) slog.Attr
- func Stacktrace() slog.Attr
- func TraceID(span trace.Span) slog.Attr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddToContext ¶ added in v0.0.90
AddToContext adds the given logger to the context, returning the new context.
func FromContext ¶ added in v0.0.90
FromContext returns the logger from the context, or the default logger if none exists.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.