Skip to content

FLOW_LoggerLog.DTO_Request

Class

apex
global inherited sharing class FLOW_LoggerLog.DTO_Request

Input parameters for logging a Flow event.

Since: 1.0


Fields

FieldDescription
global String additionalContextAdditional context to include with the log entry
global String correlationIdCorrelation ID from Start Flow Correlation
global String flowStepCurrent step/screen name for context
global String logLevelDEBUG, INFO, WARN, or ERROR (default: INFO)
global String messageLog message

Field Details

additionalContext

apex
@InvocableVariable(description='Additional context to include with the log entry' label='Additional Context') global String additionalContext

Type: String

Additional context to include with the log entry

Since: 1.0

Example:

apex
String value = instance.additionalContext;

correlationId

apex
@InvocableVariable(required=true description='Correlation ID from Start Flow Correlation' label='Correlation ID') global String correlationId

Type: String

Correlation ID from Start Flow Correlation

Since: 1.0

Example:

apex
String value = instance.correlationId;

flowStep

apex
@InvocableVariable(description='Current step/screen name for context' label='Flow Step') global String flowStep

Type: String

Current step/screen name for context

Since: 1.0

Example:

apex
String value = instance.flowStep;

logLevel

apex
@InvocableVariable(description='DEBUG, INFO, WARN, or ERROR (default: INFO)' label='Log Level') global String logLevel

Type: String

DEBUG, INFO, WARN, or ERROR (default: INFO)

Since: 1.0

Example:

apex
String value = instance.logLevel;

message

apex
@InvocableVariable(required=true description='Log message' label='Message') global String message

Type: String

Log message

Since: 1.0

Example:

apex
String value = instance.message;