temporalio.nexus.LoggerAdapter

class documentation

class LoggerAdapter(logging.LoggerAdapter): (source)

Constructor: LoggerAdapter(logger, extra)

View In Hierarchy

Logger adapter that adds Nexus operation context information.

Method __init__ Initialize the logger adapter.
Method process Process log records to add Nexus operation context.

def __init__(self, logger: logging.Logger, extra: Mapping[str, Any] | None): (source)

Initialize the logger adapter.

def process(self, msg: Any, kwargs: MutableMapping[str, Any]) -> tuple[Any, MutableMapping[str, Any]]: (source)

Process log records to add Nexus operation context.