A new context object containing the appended machine logs.
Deprecated
only compatible with createOrchestrationMachineV2. Use BasicActions object if using createOrchestrationMachineV3
An XState action that appends machine logs to the context, including information
from the current event and context.
Function
Remarks
This action is designed for logging purposes within an XState machine. It appends
a log entry to the '__machineLogs' property in the context. Each log entry includes
information such as CloudEvent ID, CloudEvent data, event details, context details,
timestamp, and ISO timestamp.
The resulting '__machineLogs' array provides a history of events and their associated
data during the execution of the state machine.
Example usage:
constmachineConfig = { // ... other machine configuration actions: { logMachineActivity:assignLogsToContext, // ... other actions }, };
Deprecated
An XState action that appends machine logs to the context, including information from the current event and context.
Function
Remarks
This action is designed for logging purposes within an XState machine. It appends a log entry to the '__machineLogs' property in the context. Each log entry includes information such as CloudEvent ID, CloudEvent data, event details, context details, timestamp, and ISO timestamp.
The resulting '__machineLogs' array provides a history of events and their associated data during the execution of the state machine.
Example usage: