Skip to content

FLOW_WriteLog.DTO_Request

Class

apex
global inherited sharing class FLOW_WriteLog.DTO_Request

Data Transfer Object (DTO) for log requests, specifying log level, message details, and context.

Since: 1.0


Fields

FieldDescription
global String classMethodAn optional class and method name for context.
global String correlationIdAn optional correlation ID for tracing across transactions.
global String logLevelThe logging level (DEBUG, INFO, WARN, ERROR).
global String messageThe detailed (long) message to log.
global String recordIdAn optional record ID associated with the log entry.
global String shortMessageAn optional short summary of the message.

Field Details

classMethod

apex
@InvocableVariable(required=false description='The class and method name for logging context (defaults to FLOW_WriteLog.writeLog)' label='Class.Method') global String classMethod

Type: String

An optional class and method name for context.

Since: 1.0

correlationId

apex
@InvocableVariable(required=false description='Links this log to related logs across transactions' label='Correlation Id') global String correlationId

Type: String

An optional correlation ID for tracing across transactions.

Since: 1.0

logLevel

apex
@InvocableVariable(description='The level at which to log the message' label='Log Level') global String logLevel

Type: String

The logging level (DEBUG, INFO, WARN, ERROR).

Since: 1.0

message

apex
@InvocableVariable(required=true description='The detailed message to be logged' label='Message') global String message

Type: String

The detailed (long) message to log.

Since: 1.0

Example:

apex
String value = instance.message;

recordId

apex
@InvocableVariable(required=false description='The Id of the record related to this log' label='Record Id') global String recordId

Type: String

An optional record ID associated with the log entry.

Since: 1.0

Example:

apex
String value = instance.recordId;

shortMessage

apex
@InvocableVariable(required=false description='A brief summary of the message' label='Short Summary') global String shortMessage

Type: String

An optional short summary of the message.

Since: 1.0

Example:

apex
String value = instance.shortMessage;