Documentation
¶
Overview ¶
Package logger provides an adapter that bridges slog.Logger with the go.temporal.io/sdk/log.Logger interface used by the Temporal SDK client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SlogAdapter ¶
type SlogAdapter struct {
// contains filtered or unexported fields
}
SlogAdapter bridges an slog.Logger to the Temporal SDK log.Logger interface.
func NewSlogAdapter ¶
func NewSlogAdapter(log *slog.Logger) *SlogAdapter
NewSlogAdapter wraps the given slog.Logger into the Temporal SDK log interface.
func (*SlogAdapter) Debug ¶
func (l *SlogAdapter) Debug(msg string, keyvals ...any)
func (*SlogAdapter) Error ¶
func (l *SlogAdapter) Error(msg string, keyvals ...any)
func (*SlogAdapter) Info ¶
func (l *SlogAdapter) Info(msg string, keyvals ...any)
func (*SlogAdapter) Warn ¶
func (l *SlogAdapter) Warn(msg string, keyvals ...any)
Click to show internal directories.
Click to hide internal directories.