FLOW_WriteLog.DTO_Request
Class
apex
global inherited sharing class FLOW_WriteLog.DTO_RequestData Transfer Object (DTO) for log requests, specifying log level, message details, and context.
Fields
| Field | Description |
|---|---|
| global String classMethod | An optional class and method name for context. |
| global String correlationId | An optional correlation ID for tracing across transactions. |
| global String logLevel | The logging level (DEBUG, INFO, WARN, ERROR). |
| global String message | The detailed (long) message to log. |
| global String recordId | An optional record ID associated with the log entry. |
| global String shortMessage | An optional short summary of the message. |
classMethod
apex
@InvocableVariable(required=false description='The class and method name for logging context (defaults to FLOW_WriteLog.writeLog)' label='Class.Method' placeholderText='MyFlow.ErrorHandler') global String classMethodType: String
An optional class and method name for context.
correlationId
apex
@InvocableVariable(required=false description='Links this log to related logs across transactions' label='Correlation Id') global String correlationIdType: String
An optional correlation ID for tracing across transactions.
logLevel
apex
@InvocableVariable(description='Pick Debug, Info, Warning, or Error for this log entry. Stored values are DEBUG, INFO, WARN, and ERROR; the field shows the stored value.' label='Log Level' placeholderText='INFO' defaultValue='INFO') global String logLevelType: String
The logging level (DEBUG, INFO, WARN, ERROR).
message
apex
@InvocableVariable(required=true description='The detailed message to be logged' label='Message') global String messageType: String
The detailed (long) message to log.
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 recordIdType: String
An optional record ID associated with the log entry.
Example
apex
String value = instance.recordId;shortMessage
apex
@InvocableVariable(required=false description='A brief summary of the message' label='Short Summary') global String shortMessageType: String
An optional short summary of the message.
Example
apex
String value = instance.shortMessage;