The most robust logger for Salesforce. Works with Apex, Lightning Components, Flow, Process Builder & Integrations. Designed for Salesforce admins, developers & architects.
Selector class used for all queries that are specific to the log management layer
getAll(Schema.SObjectType sobjectType, Set<String> fieldNames)
→ List<SObject>
Dynamically queries & returns all records in the specified SObjectType
Param | Description |
---|---|
sobjectType |
The SObjectType to query |
fieldNames |
Set<String> API names of any fields to include in the query |
Type
List<SObject>
Description
List<SObject>
containing any records in the specified SObjectType
getApexClasses(Set<String> apexClassNames)
→ List<ApexClass>
Returns a list of ApexClass
records
Param | Description |
---|---|
apexClassNames |
The names of the Apex classes to query |
Type
List<ApexClass>
Description
List<ApexClass>
containing any matching records
getApexTriggers(Set<String> apexTriggerNames)
→ List<ApexTrigger>
Returns a list of ApexTrigger
records
Param | Description |
---|---|
apexTriggerNames |
The names of the Apex triggers to query |
Type
List<ApexTrigger>
Description
List<ApexTrigger>
containing any matching records
getById(Schema.SObjectType sobjectType, Set<String> fieldNames, List<Id> recordIds)
→ List<SObject>
Dynamically queries & returns records in the specified SObjectType
based on the specified record IDs
Param | Description |
---|---|
sobjectType |
The SObjectType to query |
fieldNames |
Set<String> API names of any fields to include in the query |
recordIds |
List<Id> of record IDs to include in the query results |
Type
List<SObject>
Description
List<SObject>
containing any matching records in the specified SObjectType
getCachedApexEmailNotifications()
→ List<ApexEmailNotification>
Returns a cached copy of the ApexEmailNotification
records in the org
Type
List<ApexEmailNotification>
Description
The cached List<ApexEmailNotification>
records
getCachedRecentLogWithApiReleaseDetails()
→ Log__c
Returns a cached Log__c
record that has been created within the last 4 hours that has API details populated from calling https://api.status.salesforce.com
Type
Log__c
Description
The cached Log__c
record, or null
if no match is found
getCountOfAsyncApexJobs(String apexClassName, String apexMethodName, List<String> jobStatuses)
→ Integer
Returns the count of AsyncApexJob
records with the specified Apex class name, method name & job status
Param | Description |
---|---|
apexClassName |
The fully-qualified name of the Apex class associated with AsyncApexJob |
apexMethodName |
The specific method (if any) within the Apex class associated with AsyncApexJob |
jobStatuses |
The list of job statuses that should be used to filter AsynxApexJob records |
Type
Integer
Description
The Integer
count of matching AsynxApexJob
records
getCountOfRelatedRecordLogEntries(Id recordId)
→ Integer
Returns the count of LogEntry__c
records related to the specified record ID
Param | Description |
---|---|
recordId |
The ID to use for filtering LogEntry__c records |
Type
Integer
Description
The Integer
count of matching LogEntry__c
records
getDeleteableUserRecordAccess(List<Id> recordIds)
→ List<UserRecordAccess>
Returns the list of UserRecordAccess
records for any of the specified record IDs that the current user can delete
Param | Description |
---|---|
recordIds |
The list of ID for records to be deleted |
Type
List<UserRecordAccess>
Description
The matching List<UserRecordAccess>
records
getFlowDefinitionViewsByFlowApiName(List<String> flowApiNames)
→ List<FlowDefinitionView>
Returns a list of FlowDefinitionView
records
Param | Description |
---|---|
flowApiNames |
The names of the Apex classes to query |
Type
List<FlowDefinitionView>
Description
List<FlowDefinitionView>
containing any matching records
getFlowVersionViewsByDurableId(List<String> durableIds)
→ List<FlowVersionView>
Returns a list of FlowVersionView
records description
Param | Description |
---|---|
durableIds |
The durable IDs of the Flows to query |
Type
List<FlowVersionView>
Description
List<FlowDefinitionView>
containing any matching records
getInstance()
→ LogManagementDataSelector
The instance LogManagementDataSelector
used for any querying specific to the log management layer
Type
LogManagementDataSelector
Description
The singleton instance of LogManagementDataSelector
getLogById(Id logId)
→ Log__c
Returns a Log__c
record
Param | Description |
---|---|
logId |
The ID of the Log__c record to query |
Type
Log__c
Description
The matching Log__c
record
getLogEntriesByLogId(Id logId)
→ List<LogEntry__c>
Returns a List<LogEntry__c>
records for the specified Log__c
ID
Param | Description |
---|---|
logId |
The ID of the Log__c record of the LogEntry__c records to query |
Type
List<LogEntry__c>
Description
The matching List<LogEntry__c>
records
getLogEntryById(Id logEntryId)
→ LogEntry__c
Returns a LogEntry__c
record
Param | Description |
---|---|
logEntryId |
The ID of the LogEntry__c record to query |
Type
LogEntry__c
Description
The matching LogEntry__c
record
getLoggerScenariosById(List<Id> logScenarioIds)
→ List<LoggerScenario__c>
Returns a List<LoggerScenario__c>
of records with the specified log scenario IDs
Param | Description |
---|---|
logScenarioIds |
The list of ID of the Log__c records to query |
Type
List<LoggerScenario__c>
Description
The list of matching LoggerScenario__c
records
getLogsById(List<Id> logIds)
→ List<Log__c>
Returns a Log__c
record and its related LogEntry__c
records
Param | Description |
---|---|
logIds |
The list of ID of the Log__c records to query |
Type
List<Log__c>
Description
The list of matching Log__c
records
getLogsByTransactionId(List<String> transactionIds)
→ List<Log__c>
Returns a List<Log__c>
of records with the specified transaction IDs
Param | Description |
---|---|
transactionIds |
The list of String transaction IDs of the Log__c records to query |
Type
List<Log__c>
Description
The list of matching Log__c
records
getLogsWithoutParentLogByParentTransactionId(List<String> parentTransactionIds)
→ List<Log__c>
Returns a List<Log__c>
of records with the specified parent transaction IDs and a null
value in ParentLog__c
Param | Description |
---|---|
parentTransactionIds |
The list of String parent transaction IDs of the Log__c records to query |
Type
List<Log__c>
Description
The list of matching Log__c
records
getProfilesById(List<Id> profileIds)
→ List<Schema.Profile>
Returns a List<Schema.Profile>
of records with the specified profile IDs
Param | Description |
---|---|
profileIds |
The list of ID of the Schema.Profile records to query |
Type
List<Schema.Profile>
Description
The list of matching Schema.Profile
records
getProfilesByNameSearch(String searchTerm)
→ List<Schema.Profile>
Returns a List<Schema.Profile>
of records where the profile's names partially matches the specified search term
Param | Description |
---|---|
searchTerm |
The String search term to use for searching Schema.Profile records |
Type
List<Schema.Profile>
Description
The list of matching Schema.Profile
records
getQueuesByDeveloperName(List<String> queueDeveloperNames)
→ List<Schema.Group>
Returns a List<Schema.Group>
of records with the specified developer names and type == 'Queue'
Param | Description |
---|---|
queueDeveloperNames |
The list of String queue developer names to query |
Type
List<Schema.Group>
Description
The list of matching Schema.Group
records
getRecordLogEntries(Id recordId, String fieldsClause, String orderByClause, Integer rowLimit)
→ List<LogEntry__c>
Returns the list of LogEntry__c
records related to the specified record ID
Param | Description |
---|---|
recordId |
The ID to use for filtering LogEntry__c records |
fieldsClause |
A comma-separated String of field API names to include in the query |
orderByClause |
A comma-separated String of field API names to use for sorting the query results |
rowLimit |
The maximum number of records to return |
Type
List<LogEntry__c>
Description
The list of matching LogEntry__c
records
getTagsByName(Set<String> tagNames)
→ List<LoggerTag__c>
Returns a list of LoggerTag__c
records with one of the specified tag names
Param | Description |
---|---|
tagNames |
The set of String tag names to query |
Type
List<LoggerTag__c>
Description
The list of matching LoggerTag__c
records
getTopicsByName(Set<String> topicNames)
→ List<Schema.Topic>
Returns a list of Schema.Topic
records with one of the specified topic names
Param | Description |
---|---|
topicNames |
The set of String topic names to query |
Type
List<Schema.Topic>
Description
The list of matching Schema.Topic
records
getUsersById(List<Id> userIds)
→ List<Schema.User>
Returns a List<Schema.User>
of records with the specified user IDs
Param | Description |
---|---|
userIds |
The list of ID of the Schema.User records to query |
Type
List<Schema.User>
Description
The list of matching Schema.User
records
getUsersByNameSearch(String searchTerm)
→ List<Schema.User>
Returns a List<Schema.User>
of records where the User's names or username partially matches the specified search term
Param | Description |
---|---|
searchTerm |
The String search term to use for searching Schema.User records |
Type
List<Schema.User>
Description
The list of matching Schema.User
records
getUsersByUsername(List<String> usernames)
→ List<Schema.User>
Returns a List<Schema.User>
of records with the specified usernames (Schema.User.Username
)
Param | Description |
---|---|
usernames |
The list of String user usernames to query |
Type
List<Schema.User>
Description
Tje list of matching Schema.User
records