FLOW_LoggerLog
Class · Group: Logging
apex
global inherited sharing class FLOW_LoggerLogLogs an event within a Flow with correlation support. Use this to log messages, warnings, or errors during Flow execution.
Since: 1.0
Example:
In Flow Builder: Add "Log Flow Event" action anywhere in your Flow Pass the Correlation ID from "Start Flow Correlation" Set Message and optionally Log Level (DEBUG, INFO, WARN, ERROR) Optionally set Flow Step to identify where in the Flow the log occurred
Methods
| Method | Description |
|---|---|
| global static void execute(List<FLOW_LoggerLog.DTO_Request> inputs) | Logs an event within a Flow. |
Inner Classes
| Class | Description |
|---|---|
| DTO_Request | Input parameters for logging a Flow event. |
Method Details
execute
apex
@InvocableMethod(category='Logging' description='Logs a message within a Flow with correlation support.' label='Log Flow Event') global static void execute(List<FLOW_LoggerLog.DTO_Request> inputs)Logs an event within a Flow.
Parameters:
inputs(List) - List of input parameters
Since: 1.0
Example:
apex
FLOW_LoggerLog.execute(new List<DTO_Request>());