Skip to content

FLOW_LoggerLog

Class · Group: Logging

apex
global inherited sharing class FLOW_LoggerLog

Logs 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

MethodDescription
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

ParameterTypeDescription
inputsListList of input parameters

Example

apex
FLOW_LoggerLog.execute(new List<DTO_Request>());

Inner Classes

ClassDescription
DTO_RequestInput parameters for logging a Flow event.