Skip to content

LogEntryEvent__e

Sobject

apex
global class LogEntryEvent__e extends SObject

Extends: SObject

High-volume platform event that transports log data asynchronously. Persisted to LogEntry__c records via trigger. Ensures zero DML impact on the calling transaction and survives rollbacks.


Fields

FieldDescription
global String ClassMethod__cSource class and method where the event occurred, formatted as Class.method.
global String ContextData__cJSON map of key-value pairs providing structured context about the operation.
global String CorrelationId__cUnique identifier linking related log entries across multiple transactions.
global Decimal DurationMs__cDuration of the operation in milliseconds.
global String ExceptionType__cFully qualified Apex exception class name (e.g., System.DmlException).
global String ExecutionEvent__cSalesforce execution context (Quiddity) that produced this log entry.
global String Fingerprint__cGrouping key carried from LOG_Builder.withFingerprint to the persist trigger, where fingerprinted events collapse into a detail row plus windowed rollup counters.
global String Limits__cJSON snapshot of Salesforce governor limits at the time the event was logged.
global Decimal LineNumber__cSource code line number in the Apex class where the exception occurred.
global String LogLevel__cSeverity level of this log entry: DEBUG, INFO, WARN, or ERROR.
global String Message__cFull log message content.
global String ParentTransactionId__cTransaction ID of the parent process that spawned this execution context.
global String RecordId__cSalesforce record ID associated with this log entry, if applicable.
global String ShortMessage__cBrief summary of the log message, safe for SOQL WHERE and GROUP BY clauses.
global String StackTrace__cApex execution stack trace captured at the time the event was logged.
global String TransactionId__cSalesforce Request ID for the transaction that produced this log entry.
global String UserId__cSalesforce User ID of the user whose execution context produced this log entry.

Field Details

ClassMethod__c

apex
global String ClassMethod__c

Source class and method where the event occurred, formatted as Class.method.

Field Attributes:

AttributeValue
Data TypeText(100)
Requiredfalse
Uniquefalse
External IDfalse

ContextData__c

apex
global String ContextData__c

JSON map of key-value pairs providing structured context about the operation.

Field Attributes:

AttributeValue
Data TypeLong Text Area(32768)

CorrelationId__c

apex
global String CorrelationId__c

Unique identifier linking related log entries across multiple transactions.

Field Attributes:

AttributeValue
Data TypeText(36)
Requiredfalse
Uniquefalse
External IDfalse

DurationMs__c

apex
global Decimal DurationMs__c

Duration of the operation in milliseconds.

Field Attributes:

AttributeValue
Data TypeNumber(18,0)
Requiredfalse
Uniquefalse
External IDfalse

ExceptionType__c

apex
global String ExceptionType__c

Fully qualified Apex exception class name (e.g., System.DmlException).

Field Attributes:

AttributeValue
Data TypeText(80)
Requiredfalse
Uniquefalse
External IDfalse

ExecutionEvent__c

apex
global String ExecutionEvent__c

Salesforce execution context (Quiddity) that produced this log entry.

Field Attributes:

AttributeValue
Data TypeText(40)
Requiredfalse
Uniquefalse
External IDfalse

Fingerprint__c

apex
global String Fingerprint__c

Grouping key carried from LOG_Builder.withFingerprint to the persist trigger, where fingerprinted events collapse into a detail row plus windowed rollup counters.

Field Attributes:

AttributeValue
Data TypeText(216)
Requiredfalse
Uniquefalse
External IDfalse

Limits__c

apex
global String Limits__c

JSON snapshot of Salesforce governor limits at the time the event was logged.

Field Attributes:

AttributeValue
Data TypeLong Text Area(1024)

LineNumber__c

apex
global Decimal LineNumber__c

Source code line number in the Apex class where the exception occurred.

Field Attributes:

AttributeValue
Data TypeNumber(8,0)
Requiredfalse
Uniquefalse
External IDfalse

LogLevel__c

apex
global String LogLevel__c

Severity level of this log entry: DEBUG, INFO, WARN, or ERROR.

Field Attributes:

AttributeValue
Data TypeText(10)
Requiredfalse
Uniquefalse
External IDfalse

Message__c

apex
global String Message__c

Full log message content. May contain exception details, stack traces, or diagnostic text.

Field Attributes:

AttributeValue
Data TypeLong Text Area(131072)

ParentTransactionId__c

apex
global String ParentTransactionId__c

Transaction ID of the parent process that spawned this execution context.

Field Attributes:

AttributeValue
Data TypeText(36)
Requiredfalse
Uniquefalse
External IDfalse

RecordId__c

apex
global String RecordId__c

Salesforce record ID associated with this log entry, if applicable.

Field Attributes:

AttributeValue
Data TypeText(18)
Requiredfalse
Uniquefalse
External IDfalse

ShortMessage__c

apex
global String ShortMessage__c

Brief summary of the log message, safe for SOQL WHERE and GROUP BY clauses.

Field Attributes:

AttributeValue
Data TypeText(255)
Requiredfalse
Uniquefalse
External IDfalse

StackTrace__c

apex
global String StackTrace__c

Apex execution stack trace captured at the time the event was logged.

Field Attributes:

AttributeValue
Data TypeLong Text Area(4096)

TransactionId__c

apex
global String TransactionId__c

Salesforce Request ID for the transaction that produced this log entry.

Field Attributes:

AttributeValue
Data TypeText(36)
Requiredfalse
Uniquefalse
External IDfalse

UserId__c

apex
global String UserId__c

Salesforce User ID of the user whose execution context produced this log entry.

Field Attributes:

AttributeValue
Data TypeText(18)
Requiredfalse
Uniquefalse
External IDfalse