Skip to content

LogEntry__c

Sobject

apex
global class LogEntry__c extends SObject

Extends: SObject

Persistent log entries captured by the Kern logging framework. Each record represents a single logged event from Apex, Flows, or LWC, published asynchronously via LogEntryEvent__e.


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 for log flood control.
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 Decimal OccurrenceCount__cTotal occurrences counted in this rollup row's window, including the occurrence sampled by the fingerprint's detail row.
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 RecordLink__cFormula-generated hyperlink to the record associated with this log entry.
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 emitted this log entry.
global String UserLink__cFormula-generated hyperlink to the user who 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 IDtrue

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 TypePicklist
Requiredfalse

Picklist Values:

API NameLabelActive
ANONYMOUSANONYMOUSYes
AURAAURAYes
BATCH_ACSBATCH_ACSYes
BATCH_APEXBATCH_APEXYes
BATCH_CHUNK_PARALLELBATCH_CHUNK_PARALLELYes
BATCH_CHUNK_SERIALBATCH_CHUNK_SERIALYes
BULK_APIBULK_APIYes
COMMERCE_INTEGRATIONCOMMERCE_INTEGRATIONYes
DISCOVERABLE_LOGINDISCOVERABLE_LOGINYes
FUNCTION_CALLBACKFUNCTION_CALLBACKYes
FUTUREFUTUREYes
INBOUND_EMAIL_SERVICEINBOUND_EMAIL_SERVICEYes
INVOCABLE_ACTIONINVOCABLE_ACTIONYes
IOTIOTYes
QUEUEABLEQUEUEABLEYes
QUICK_ACTIONQUICK_ACTIONYes
REMOTE_ACTIONREMOTE_ACTIONYes
RESTRESTYes
RUNTEST_ASYNCRUNTEST_ASYNCYes
RUNTEST_DEPLOYRUNTEST_DEPLOYYes
RUNTEST_SYNCRUNTEST_SYNCYes
SCHEDULEDSCHEDULEDYes
SOAPSOAPYes
SYNCHRONOUSSYNCHRONOUSYes
TRANSACTION_FINALIZER_QUEUEABLETRANSACTION_FINALIZER_QUEUEABLEYes
VFVFYes

Fingerprint__c

apex
global String Fingerprint__c

Grouping key for log flood control. Detail rows store detail:<key> (at most one per fingerprint, enforced by uniqueness); daily rollup rows store rollup:<key>:<yyyyMMdd>. Blank on ungrouped entries. The framework reserves the bypass: key prefix for bypass-audit fingerprints.

Field Attributes:

AttributeValue
Data TypeText(216), case-sensitive
Requiredfalse
Uniquetrue
External IDtrue

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 TypePicklist
Requiredfalse

Picklist Values:

API NameLabelActive
DEBUGDEBUGYes
INFOINFOYes
WARNWARNYes
ERRORERRORYes

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)

OccurrenceCount__c

apex
global Decimal OccurrenceCount__c

Total occurrences counted in this rollup row's window, including the occurrence sampled by the fingerprint's detail row. Populated only on rollup rows; SUM this field over rollup rows for true occurrence totals.

Field Attributes:

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

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
apex
global String RecordLink__c

Formula-generated hyperlink to the record associated with this log entry. Provides one-click navigation from the log to the source record.

Field Attributes:

AttributeValue
Data TypeText
Requiredfalse
Uniquefalse
External IDfalse
FormulaHYPERLINK("/" + RecordId__c , "Open")

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 IDtrue

UserId__c

apex
global String UserId__c

Salesforce User ID of the user whose execution context emitted this log entry. Filter reports and queries by this field — not CreatedById — to find logs from a specific user. CreatedById is always the Automated Process user because log entries are persisted by a Platform Event trigger subscriber.

Field Attributes:

AttributeValue
Data TypeText(18)
Requiredfalse
Uniquefalse
External IDfalse
apex
global String UserLink__c

Formula-generated hyperlink to the user who produced this log entry. Provides one-click navigation from the log to the user record.

Field Attributes:

AttributeValue
Data TypeText
Requiredfalse
Uniquefalse
External IDfalse
FormulaHYPERLINK("/" + UserId__c , "Open")