logger

package
v6.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 5 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL