Documentation
¶
Overview ¶
Package logger provides utilities for working with slog and context.Context, as well as a Temporal log.Logger wrapper for them.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FatalContext ¶
func From ¶
From returns a Temporal log.Logger that wraps a slog.Logger which is attached to the specified Temporal workflow.Context. If the context is nil, it returns slog.Default as a fallback, which still satisfies the log.Logger interface.
func FromContext ¶
FromContext returns the slog.Logger attached to the given context.Context, or slog.Default if none is attached.
func WithContext ¶
WithContext returns a derived context.Context that points to the given parent, and has the given slog.Logger attached to it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.