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.
Since: 1.0
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. |
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 classMethodType: 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 correlationIdType: 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 logLevelType: 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 messageType: 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 recordIdType: 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 shortMessageType: String
An optional short summary of the message.
Since: 1.0
Example:
apex
String value = instance.shortMessage;