logging

import "github.com/superdurable/dex/sdk-go/logging"

Index

type Logger

Logger receives structured SDK logs.

msg is the human-readable event and keyvals contains alternating string keys and values. Implementations should be safe for concurrent Client and Worker calls.

type Logger interface {
    // Debug records diagnostic detail normally disabled in production.
    Debug(msg string, keyvals ...interface{})
    // Info records routine SDK lifecycle and request information.
    Info(msg string, keyvals ...interface{})
    // Warn records a recoverable condition that may require operator attention.
    Warn(msg string, keyvals ...interface{})
    // Error records an SDK operation failure and its structured context.
    Error(msg string, keyvals ...interface{})
}

func OrDefault

func OrDefault(logger Logger) Logger

OrDefault returns logger or slog.Default when logger is nil.

Generated by gomarkdoc