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.
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. |
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
| Parameter | Type | Description |
|---|---|---|
inputs | List | List of input parameters |
Example
apex
FLOW_LoggerLog.execute(new List<DTO_Request>());Inner Classes
| Class | Description |
|---|---|
| DTO_Request | Input parameters for logging a Flow event. |