Logger
Logger Class
Section titled “Logger Class”SUPPRESSWARNINGS
The core class for logging
Group Logger Engine
See LogMessage
Methods
Section titled “Methods”debug(logMessage, deleteResult)
Section titled “debug(logMessage, deleteResult)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(LogMessage logMessage, Database.DeleteResult deleteResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| deleteResult | Database.DeleteResult | The instance of Database.DeleteResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(logMessage, emptyRecycleBinResult)
Section titled “debug(logMessage, emptyRecycleBinResult)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(LogMessage logMessage, Database.EmptyRecycleBinResult emptyRecycleBinResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| emptyRecycleBinResult | Database.EmptyRecycleBinResult | The instance of Database.LeadConvertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(logMessage, leadConvertResult)
Section titled “debug(logMessage, leadConvertResult)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(LogMessage logMessage, Database.LeadConvertResult leadConvertResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| leadConvertResult | Database.LeadConvertResult | The instance of Database.LeadConvertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(logMessage, mergeResult)
Section titled “debug(logMessage, mergeResult)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(LogMessage logMessage, Database.MergeResult mergeResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| mergeResult | Database.MergeResult | The instance of Database.MergeResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(logMessage, saveResult)
Section titled “debug(logMessage, saveResult)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(LogMessage logMessage, Database.SaveResult saveResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| saveResult | Database.SaveResult | The instance of Database.SaveResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(logMessage, undeleteResult)
Section titled “debug(logMessage, undeleteResult)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(LogMessage logMessage, Database.UndeleteResult undeleteResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| undeleteResult | Database.UndeleteResult | The instance of Database.UndeleteResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(logMessage, upsertResult)
Section titled “debug(logMessage, upsertResult)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(LogMessage logMessage, Database.UpsertResult upsertResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| upsertResult | Database.UpsertResult | The instance of Database.UpsertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(logMessage, deleteResults)
Section titled “debug(logMessage, deleteResults)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(LogMessage logMessage, List<Database.DeleteResult> deleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| deleteResults | List<Database.DeleteResult> | The instance of List<Database.DeleteResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(logMessage, emptyRecycleBinResults)
Section titled “debug(logMessage, emptyRecycleBinResults)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(LogMessage logMessage, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| emptyRecycleBinResults | List<Database.EmptyRecycleBinResult> | The instance of List<Database.EmptyRecycleBinResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(logMessage, leadConvertResults)
Section titled “debug(logMessage, leadConvertResults)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(LogMessage logMessage, List<Database.LeadConvertResult> leadConvertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| leadConvertResults | List<Database.LeadConvertResult> | The instance of List<Database.LeadConvertResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(logMessage, mergeResults)
Section titled “debug(logMessage, mergeResults)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(LogMessage logMessage, List<Database.MergeResult> mergeResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| mergeResults | List<Database.MergeResult> | The instance of List<Database.MergeResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(logMessage, saveResults)
Section titled “debug(logMessage, saveResults)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(LogMessage logMessage, List<Database.SaveResult> saveResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| saveResults | List<Database.SaveResult> | The instance of List<Database.SaveResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(logMessage, undeleteResults)
Section titled “debug(logMessage, undeleteResults)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(LogMessage logMessage, List<Database.UndeleteResult> undeleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| undeleteResults | List<Database.UndeleteResult> | The instance of List<Database.UndeleteResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(logMessage, upsertResults)
Section titled “debug(logMessage, upsertResults)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(LogMessage logMessage, List<Database.UpsertResult> upsertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| upsertResults | List<Database.UpsertResult> | The instance of List<Database.UpsertResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(logMessage, recordId)
Section titled “debug(logMessage, recordId)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(LogMessage logMessage, Id recordId)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| recordId | Id | The record ID of an SObject to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(logMessage, record)
Section titled “debug(logMessage, record)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(LogMessage logMessage, SObject record)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| record | SObject | The SObject record to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(logMessage, records)
Section titled “debug(logMessage, records)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(LogMessage logMessage, List<SObject> records)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| records | List |
The list of SObject records to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(logMessage)
Section titled “debug(logMessage)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(LogMessage logMessage)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(message, deleteResult)
Section titled “debug(message, deleteResult)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(String message, Database.DeleteResult deleteResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| deleteResult | Database.DeleteResult | The instance of Database.DeleteResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(message, emptyRecycleBinResult)
Section titled “debug(message, emptyRecycleBinResult)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(String message, Database.EmptyRecycleBinResult emptyRecycleBinResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| emptyRecycleBinResult | Database.EmptyRecycleBinResult | The instance of Database.LeadConvertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(message, leadConvertResult)
Section titled “debug(message, leadConvertResult)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(String message, Database.LeadConvertResult leadConvertResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| leadConvertResult | Database.LeadConvertResult | The instance of Database.LeadConvertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(message, mergeResult)
Section titled “debug(message, mergeResult)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(String message, Database.MergeResult mergeResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| mergeResult | Database.MergeResult | The instance of Database.MergeResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(message, saveResult)
Section titled “debug(message, saveResult)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(String message, Database.SaveResult saveResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| saveResult | Database.SaveResult | The instance of Database.SaveResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(message, undeleteResult)
Section titled “debug(message, undeleteResult)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(String message, Database.UndeleteResult undeleteResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| undeleteResult | Database.UndeleteResult | The instance of Database.UndeleteResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(message, upsertResult)
Section titled “debug(message, upsertResult)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(String message, Database.UpsertResult upsertResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| upsertResult | Database.UpsertResult | The instance of Database.UpsertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(message, deleteResults)
Section titled “debug(message, deleteResults)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(String message, List<Database.DeleteResult> deleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| deleteResults | List<Database.DeleteResult> | The list of Database.DeleteResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(message, emptyRecycleBinResults)
Section titled “debug(message, emptyRecycleBinResults)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(String message, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| emptyRecycleBinResults | List<Database.EmptyRecycleBinResult> | The instance of List<Database.EmptyRecycleBinResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(message, leadConvertResults)
Section titled “debug(message, leadConvertResults)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(String message, List<Database.LeadConvertResult> leadConvertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| leadConvertResults | List<Database.LeadConvertResult> | The instance of List<Database.LeadConvertResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(message, mergeResults)
Section titled “debug(message, mergeResults)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(String message, List<Database.MergeResult> mergeResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| mergeResults | List<Database.MergeResult> | The list of Database.MergeResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(message, saveResults)
Section titled “debug(message, saveResults)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(String message, List<Database.SaveResult> saveResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| saveResults | List<Database.SaveResult> | The list of Database.SaveResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(message, undeleteResults)
Section titled “debug(message, undeleteResults)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(String message, List<Database.UndeleteResult> undeleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| undeleteResults | List<Database.UndeleteResult> | The list of Database.UndeleteResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(message, upsertResults)
Section titled “debug(message, upsertResults)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(String message, List<Database.UpsertResult> upsertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| upsertResults | List<Database.UpsertResult> | The list of Database.UpsertResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(message, recordId)
Section titled “debug(message, recordId)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(String message, Id recordId)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| recordId | Id | The record ID of an SObject to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(message, record)
Section titled “debug(message, record)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(String message, SObject record)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| record | SObject | The SObject record to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(message, records)
Section titled “debug(message, records)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(String message, List<SObject> records)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| records | List |
The list of SObject records to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
debug(message)
Section titled “debug(message)”Creates a new log entry with logging level == System.LoggingLevel.DEBUG
Signature
Section titled “Signature”global static LogEntryEventBuilder debug(String message)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
endScenario(scenario)
Section titled “endScenario(scenario)”End the specified scenario, if it's the currently active scenario, and rolls back to the previous scenario (if a previous scenario was specified in the current transaction)
Signature
Section titled “Signature”global static void endScenario(String scenario)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| scenario | String | The name of the scenario to end |
Return Type
Section titled “Return Type”void
error(logMessage, deleteResult)
Section titled “error(logMessage, deleteResult)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(LogMessage logMessage, Database.DeleteResult deleteResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| deleteResult | Database.DeleteResult | The instance of Database.DeleteResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(logMessage, emptyRecycleBinResult)
Section titled “error(logMessage, emptyRecycleBinResult)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(LogMessage logMessage, Database.EmptyRecycleBinResult emptyRecycleBinResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| emptyRecycleBinResult | Database.EmptyRecycleBinResult | The instance of Database.LeadConvertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(logMessage, leadConvertResult)
Section titled “error(logMessage, leadConvertResult)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(LogMessage logMessage, Database.LeadConvertResult leadConvertResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| leadConvertResult | Database.LeadConvertResult | The instance of Database.LeadConvertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(logMessage, mergeResult)
Section titled “error(logMessage, mergeResult)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(LogMessage logMessage, Database.MergeResult mergeResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| mergeResult | Database.MergeResult | The instance of Database.MergeResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(logMessage, saveResult)
Section titled “error(logMessage, saveResult)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(LogMessage logMessage, Database.SaveResult saveResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| saveResult | Database.SaveResult | The instance of Database.SaveResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(logMessage, undeleteResult)
Section titled “error(logMessage, undeleteResult)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(LogMessage logMessage, Database.UndeleteResult undeleteResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| undeleteResult | Database.UndeleteResult | The instance of Database.UndeleteResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(logMessage, upsertResult)
Section titled “error(logMessage, upsertResult)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(LogMessage logMessage, Database.UpsertResult upsertResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| upsertResult | Database.UpsertResult | The instance of Database.UpsertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(logMessage, deleteResults)
Section titled “error(logMessage, deleteResults)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(LogMessage logMessage, List<Database.DeleteResult> deleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| deleteResults | List<Database.DeleteResult> | The instance of List<Database.DeleteResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(logMessage, emptyRecycleBinResults)
Section titled “error(logMessage, emptyRecycleBinResults)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(LogMessage logMessage, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| emptyRecycleBinResults | List<Database.EmptyRecycleBinResult> | The instance of List<Database.EmptyRecycleBinResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(logMessage, leadConvertResults)
Section titled “error(logMessage, leadConvertResults)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(LogMessage logMessage, List<Database.LeadConvertResult> leadConvertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| leadConvertResults | List<Database.LeadConvertResult> | The instance of List<Database.LeadConvertResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(logMessage, mergeResults)
Section titled “error(logMessage, mergeResults)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(LogMessage logMessage, List<Database.MergeResult> mergeResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| mergeResults | List<Database.MergeResult> | The instance of List<Database.MergeResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(logMessage, saveResults)
Section titled “error(logMessage, saveResults)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(LogMessage logMessage, List<Database.SaveResult> saveResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| saveResults | List<Database.SaveResult> | The instance of List<Database.SaveResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(logMessage, undeleteResults)
Section titled “error(logMessage, undeleteResults)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(LogMessage logMessage, List<Database.UndeleteResult> undeleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| undeleteResults | List<Database.UndeleteResult> | The instance of List<Database.UndeleteResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(logMessage, upsertResults)
Section titled “error(logMessage, upsertResults)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(LogMessage logMessage, List<Database.UpsertResult> upsertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| upsertResults | List<Database.UpsertResult> | The instance of List<Database.UpsertResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(logMessage, apexException)
Section titled “error(logMessage, apexException)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(LogMessage logMessage, System.Exception apexException)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| apexException | System.Exception | The instance of System.Exception to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(logMessage, recordId, apexException)
Section titled “error(logMessage, recordId, apexException)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(LogMessage logMessage, Id recordId, System.Exception apexException)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| recordId | Id | The record ID of an SObject to log |
| apexException | System.Exception | The instance of System.Exception to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(logMessage, recordId)
Section titled “error(logMessage, recordId)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(LogMessage logMessage, Id recordId)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| recordId | Id | The record ID of an SObject to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(logMessage, record, apexException)
Section titled “error(logMessage, record, apexException)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(LogMessage logMessage, SObject record, System.Exception apexException)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| record | SObject | The SObject record to log |
| apexException | System.Exception | The instance of System.Exception to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(logMessage, record)
Section titled “error(logMessage, record)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(LogMessage logMessage, SObject record)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| record | SObject | The SObject record to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(logMessage, records, apexException)
Section titled “error(logMessage, records, apexException)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(LogMessage logMessage, List<SObject> records, System.Exception apexException)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| records | List |
The list of SObject records to log |
| apexException | System.Exception | The instance of System.Exception to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(logMessage, records)
Section titled “error(logMessage, records)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(LogMessage logMessage, List<SObject> records)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| records | List |
The list of SObject records to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(logMessage)
Section titled “error(logMessage)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(LogMessage logMessage)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(message, deleteResult)
Section titled “error(message, deleteResult)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(String message, Database.DeleteResult deleteResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| deleteResult | Database.DeleteResult | The instance of Database.DeleteResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(message, emptyRecycleBinResult)
Section titled “error(message, emptyRecycleBinResult)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(String message, Database.EmptyRecycleBinResult emptyRecycleBinResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| emptyRecycleBinResult | Database.EmptyRecycleBinResult | The instance of Database.LeadConvertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(message, leadConvertResult)
Section titled “error(message, leadConvertResult)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(String message, Database.LeadConvertResult leadConvertResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| leadConvertResult | Database.LeadConvertResult | The instance of Database.LeadConvertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(message, mergeResult)
Section titled “error(message, mergeResult)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(String message, Database.MergeResult mergeResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| mergeResult | Database.MergeResult | The instance of Database.MergeResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(message, saveResult)
Section titled “error(message, saveResult)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(String message, Database.SaveResult saveResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| saveResult | Database.SaveResult | The instance of Database.SaveResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(message, undeleteResult)
Section titled “error(message, undeleteResult)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(String message, Database.UndeleteResult undeleteResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| undeleteResult | Database.UndeleteResult | The instance of Database.UndeleteResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(message, upsertResult)
Section titled “error(message, upsertResult)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(String message, Database.UpsertResult upsertResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| upsertResult | Database.UpsertResult | The instance of Database.UpsertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(message, deleteResults)
Section titled “error(message, deleteResults)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(String message, List<Database.DeleteResult> deleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| deleteResults | List<Database.DeleteResult> | The list of Database.DeleteResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(message, emptyRecycleBinResults)
Section titled “error(message, emptyRecycleBinResults)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(String message, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| emptyRecycleBinResults | List<Database.EmptyRecycleBinResult> | The instance of List<Database.EmptyRecycleBinResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(message, leadConvertResults)
Section titled “error(message, leadConvertResults)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(String message, List<Database.LeadConvertResult> leadConvertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| leadConvertResults | List<Database.LeadConvertResult> | The instance of List<Database.LeadConvertResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(message, mergeResults)
Section titled “error(message, mergeResults)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(String message, List<Database.MergeResult> mergeResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| mergeResults | List<Database.MergeResult> | The list of Database.MergeResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(message, saveResults)
Section titled “error(message, saveResults)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(String message, List<Database.SaveResult> saveResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| saveResults | List<Database.SaveResult> | The list of Database.SaveResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(message, undeleteResults)
Section titled “error(message, undeleteResults)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(String message, List<Database.UndeleteResult> undeleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| undeleteResults | List<Database.UndeleteResult> | The list of Database.UndeleteResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(message, upsertResults)
Section titled “error(message, upsertResults)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(String message, List<Database.UpsertResult> upsertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| upsertResults | List<Database.UpsertResult> | The list of Database.UpsertResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(message, apexException)
Section titled “error(message, apexException)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(String message, System.Exception apexException)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| apexException | System.Exception | The instance of System.Exception to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(message, recordId, apexException)
Section titled “error(message, recordId, apexException)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(String message, Id recordId, System.Exception apexException)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| recordId | Id | The record ID of an SObject to log |
| apexException | System.Exception | The instance of System.Exception to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(message, recordId)
Section titled “error(message, recordId)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(String message, Id recordId)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| recordId | Id | The record ID of an SObject to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(message, record, apexException)
Section titled “error(message, record, apexException)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(String message, SObject record, System.Exception apexException)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| record | SObject | The SObject record to log |
| apexException | System.Exception | The instance of System.Exception to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(message, record)
Section titled “error(message, record)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(String message, SObject record)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| record | SObject | The SObject record to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(message, records, apexException)
Section titled “error(message, records, apexException)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(String message, List<SObject> records, System.Exception apexException)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The instance of LogMessage to use to set the entry's message field |
| records | List |
The list of SObject records to log |
| apexException | System.Exception | The instance of System.Exception to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(message, records)
Section titled “error(message, records)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(String message, List<SObject> records)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| records | List |
The list of SObject records to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
error(message)
Section titled “error(message)”Creates a new log entry with logging level == System.LoggingLevel.ERROR
Signature
Section titled “Signature”global static LogEntryEventBuilder error(String message)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
exception(logMessage, apexException)
Section titled “exception(logMessage, apexException)”Creates a new log entry with logging level == System.LoggingLevel.ERROR ,
automatically saves the log, and then throws the provided exception
Signature
Section titled “Signature”global static void exception(LogMessage logMessage, System.Exception apexException)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| apexException | System.Exception | The instance of System.Exception to log and throw |
Return Type
Section titled “Return Type”void
exception(logMessage, recordId, apexException)
Section titled “exception(logMessage, recordId, apexException)”Creates a new log entry with logging level == System.LoggingLevel.ERROR ,
automatically saves the log, and then throws the provided exception
Signature
Section titled “Signature”global static void exception(LogMessage logMessage, Id recordId, System.Exception apexException)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| recordId | Id | The record ID of an SObject to log |
| apexException | System.Exception | The instance of System.Exception to log and throw |
Return Type
Section titled “Return Type”void
exception(logMessage, record, apexException)
Section titled “exception(logMessage, record, apexException)”Creates a new log entry with logging level == System.LoggingLevel.ERROR ,
automatically saves the log, and then throws the provided exception
Signature
Section titled “Signature”global static void exception(LogMessage logMessage, SObject record, System.Exception apexException)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| record | SObject | The SObject record to log |
| apexException | System.Exception | The instance of System.Exception to log and throw |
Return Type
Section titled “Return Type”void
exception(logMessage, records, apexException)
Section titled “exception(logMessage, records, apexException)”Creates a new log entry with logging level == System.LoggingLevel.ERROR ,
automatically saves the log, and then throws the provided exception
Signature
Section titled “Signature”global static void exception(LogMessage logMessage, List<SObject> records, System.Exception apexException)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| records | List |
The list of SObject records to log |
| apexException | System.Exception | The instance of System.Exception to log and throw |
Return Type
Section titled “Return Type”void
exception(message, apexException)
Section titled “exception(message, apexException)”Creates a new log entry with logging level == System.LoggingLevel.ERROR ,
automatically saves the log, and then throws the provided exception
Signature
Section titled “Signature”global static void exception(String message, System.Exception apexException)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| apexException | System.Exception | The instance of System.Exception to log and throw |
Return Type
Section titled “Return Type”void
exception(message, recordId, apexException)
Section titled “exception(message, recordId, apexException)”Creates a new log entry with logging level == System.LoggingLevel.ERROR ,
automatically saves the log, and then throws the provided exception
Signature
Section titled “Signature”global static void exception(String message, Id recordId, System.Exception apexException)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| recordId | Id | The record ID of an SObject to log |
| apexException | System.Exception | The instance of System.Exception to log and throw |
Return Type
Section titled “Return Type”void
exception(message, record, apexException)
Section titled “exception(message, record, apexException)”Creates a new log entry with logging level == System.LoggingLevel.ERROR ,
automatically saves the log, and then throws the provided exception
Signature
Section titled “Signature”global static void exception(String message, SObject record, System.Exception apexException)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| record | SObject | The SObject record to log |
| apexException | System.Exception | The instance of System.Exception to log and throw |
Return Type
Section titled “Return Type”void
exception(message, records, apexException)
Section titled “exception(message, records, apexException)”Creates a new log entry with logging level == System.LoggingLevel.ERROR ,
automatically saves the log, and then throws the provided exception
Signature
Section titled “Signature”global static void exception(String message, List<SObject> records, System.Exception apexException)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The instance of LogMessage to use to set the entry's message field |
| records | List |
The list of SObject records to log |
| apexException | System.Exception | The instance of System.Exception to log and throw |
Return Type
Section titled “Return Type”void
fine(logMessage, deleteResult)
Section titled “fine(logMessage, deleteResult)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(LogMessage logMessage, Database.DeleteResult deleteResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| deleteResult | Database.DeleteResult | The instance of Database.DeleteResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(logMessage, emptyRecycleBinResult)
Section titled “fine(logMessage, emptyRecycleBinResult)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(LogMessage logMessage, Database.EmptyRecycleBinResult emptyRecycleBinResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| emptyRecycleBinResult | Database.EmptyRecycleBinResult | The instance of Database.LeadConvertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(logMessage, leadConvertResult)
Section titled “fine(logMessage, leadConvertResult)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(LogMessage logMessage, Database.LeadConvertResult leadConvertResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| leadConvertResult | Database.LeadConvertResult | The instance of Database.LeadConvertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(logMessage, mergeResult)
Section titled “fine(logMessage, mergeResult)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(LogMessage logMessage, Database.MergeResult mergeResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| mergeResult | Database.MergeResult | The instance of Database.MergeResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(logMessage, saveResult)
Section titled “fine(logMessage, saveResult)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(LogMessage logMessage, Database.SaveResult saveResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| saveResult | Database.SaveResult | The instance of Database.SaveResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(logMessage, undeleteResult)
Section titled “fine(logMessage, undeleteResult)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(LogMessage logMessage, Database.UndeleteResult undeleteResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| undeleteResult | Database.UndeleteResult | The instance of Database.UndeleteResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(logMessage, upsertResult)
Section titled “fine(logMessage, upsertResult)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(LogMessage logMessage, Database.UpsertResult upsertResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| upsertResult | Database.UpsertResult | The instance of Database.UpsertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(logMessage, deleteResults)
Section titled “fine(logMessage, deleteResults)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(LogMessage logMessage, List<Database.DeleteResult> deleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| deleteResults | List<Database.DeleteResult> | The instance of List<Database.DeleteResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(logMessage, emptyRecycleBinResults)
Section titled “fine(logMessage, emptyRecycleBinResults)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(LogMessage logMessage, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| emptyRecycleBinResults | List<Database.EmptyRecycleBinResult> | The instance of List<Database.EmptyRecycleBinResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(logMessage, leadConvertResults)
Section titled “fine(logMessage, leadConvertResults)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(LogMessage logMessage, List<Database.LeadConvertResult> leadConvertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| leadConvertResults | List<Database.LeadConvertResult> | The instance of List<Database.LeadConvertResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(logMessage, mergeResults)
Section titled “fine(logMessage, mergeResults)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(LogMessage logMessage, List<Database.MergeResult> mergeResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| mergeResults | List<Database.MergeResult> | The instance of List<Database.MergeResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(logMessage, saveResults)
Section titled “fine(logMessage, saveResults)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(LogMessage logMessage, List<Database.SaveResult> saveResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| saveResults | List<Database.SaveResult> | The instance of List<Database.SaveResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(logMessage, undeleteResults)
Section titled “fine(logMessage, undeleteResults)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(LogMessage logMessage, List<Database.UndeleteResult> undeleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| undeleteResults | List<Database.UndeleteResult> | The instance of List<Database.UndeleteResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(logMessage, upsertResults)
Section titled “fine(logMessage, upsertResults)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(LogMessage logMessage, List<Database.UpsertResult> upsertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| upsertResults | List<Database.UpsertResult> | The instance of List<Database.UpsertResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(logMessage, recordId)
Section titled “fine(logMessage, recordId)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(LogMessage logMessage, Id recordId)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| recordId | Id | The record ID of an SObject to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(logMessage, record)
Section titled “fine(logMessage, record)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(LogMessage logMessage, SObject record)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| record | SObject | The SObject record to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(logMessage, records)
Section titled “fine(logMessage, records)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(LogMessage logMessage, List<SObject> records)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| records | List |
The list of SObject records to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(logMessage)
Section titled “fine(logMessage)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(LogMessage logMessage)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(message, deleteResult)
Section titled “fine(message, deleteResult)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(String message, Database.DeleteResult deleteResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| deleteResult | Database.DeleteResult | The instance of Database.DeleteResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(message, emptyRecycleBinResult)
Section titled “fine(message, emptyRecycleBinResult)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(String message, Database.EmptyRecycleBinResult emptyRecycleBinResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| emptyRecycleBinResult | Database.EmptyRecycleBinResult | The instance of Database.LeadConvertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(message, leadConvertResult)
Section titled “fine(message, leadConvertResult)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(String message, Database.LeadConvertResult leadConvertResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| leadConvertResult | Database.LeadConvertResult | The instance of Database.LeadConvertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(message, mergeResult)
Section titled “fine(message, mergeResult)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(String message, Database.MergeResult mergeResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| mergeResult | Database.MergeResult | The instance of Database.MergeResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(message, saveResult)
Section titled “fine(message, saveResult)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(String message, Database.SaveResult saveResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| saveResult | Database.SaveResult | The instance of Database.SaveResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(message, undeleteResult)
Section titled “fine(message, undeleteResult)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(String message, Database.UndeleteResult undeleteResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| undeleteResult | Database.UndeleteResult | The instance of Database.UndeleteResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(message, upsertResult)
Section titled “fine(message, upsertResult)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(String message, Database.UpsertResult upsertResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| upsertResult | Database.UpsertResult | The instance of Database.UpsertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(message, deleteResults)
Section titled “fine(message, deleteResults)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(String message, List<Database.DeleteResult> deleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| deleteResults | List<Database.DeleteResult> | The list of Database.DeleteResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(message, emptyRecycleBinResults)
Section titled “fine(message, emptyRecycleBinResults)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(String message, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| emptyRecycleBinResults | List<Database.EmptyRecycleBinResult> | The instance of List<Database.EmptyRecycleBinResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(message, leadConvertResults)
Section titled “fine(message, leadConvertResults)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(String message, List<Database.LeadConvertResult> leadConvertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| leadConvertResults | List<Database.LeadConvertResult> | The instance of List<Database.LeadConvertResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(message, mergeResults)
Section titled “fine(message, mergeResults)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(String message, List<Database.MergeResult> mergeResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| mergeResults | List<Database.MergeResult> | The list of Database.MergeResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(message, saveResults)
Section titled “fine(message, saveResults)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(String message, List<Database.SaveResult> saveResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| saveResults | List<Database.SaveResult> | The list of Database.SaveResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(message, undeleteResults)
Section titled “fine(message, undeleteResults)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(String message, List<Database.UndeleteResult> undeleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| undeleteResults | List<Database.UndeleteResult> | The list of Database.UndeleteResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(message, upsertResults)
Section titled “fine(message, upsertResults)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(String message, List<Database.UpsertResult> upsertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| upsertResults | List<Database.UpsertResult> | The list of Database.UpsertResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(message, recordId)
Section titled “fine(message, recordId)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(String message, Id recordId)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| recordId | Id | The record ID of an SObject to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(message, record)
Section titled “fine(message, record)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(String message, SObject record)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| record | SObject | The SObject record to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(message, records)
Section titled “fine(message, records)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(String message, List<SObject> records)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| records | List |
The list of SObject records to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
fine(message)
Section titled “fine(message)”Creates a new log entry with logging level == System.LoggingLevel.FINE
Signature
Section titled “Signature”global static LogEntryEventBuilder fine(String message)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(logMessage, deleteResult)
Section titled “finer(logMessage, deleteResult)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(LogMessage logMessage, Database.DeleteResult deleteResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| deleteResult | Database.DeleteResult | The instance of Database.DeleteResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(logMessage, emptyRecycleBinResult)
Section titled “finer(logMessage, emptyRecycleBinResult)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(LogMessage logMessage, Database.EmptyRecycleBinResult emptyRecycleBinResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| emptyRecycleBinResult | Database.EmptyRecycleBinResult | The instance of Database.LeadConvertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(logMessage, leadConvertResult)
Section titled “finer(logMessage, leadConvertResult)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(LogMessage logMessage, Database.LeadConvertResult leadConvertResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| leadConvertResult | Database.LeadConvertResult | The instance of Database.LeadConvertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(logMessage, mergeResult)
Section titled “finer(logMessage, mergeResult)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(LogMessage logMessage, Database.MergeResult mergeResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| mergeResult | Database.MergeResult | The instance of Database.MergeResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(logMessage, saveResult)
Section titled “finer(logMessage, saveResult)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(LogMessage logMessage, Database.SaveResult saveResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| saveResult | Database.SaveResult | The instance of Database.SaveResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(logMessage, undeleteResult)
Section titled “finer(logMessage, undeleteResult)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(LogMessage logMessage, Database.UndeleteResult undeleteResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| undeleteResult | Database.UndeleteResult | The instance of Database.UndeleteResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(logMessage, upsertResult)
Section titled “finer(logMessage, upsertResult)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(LogMessage logMessage, Database.UpsertResult upsertResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| upsertResult | Database.UpsertResult | The instance of Database.UpsertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(logMessage, deleteResults)
Section titled “finer(logMessage, deleteResults)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(LogMessage logMessage, List<Database.DeleteResult> deleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| deleteResults | List<Database.DeleteResult> | The instance of List<Database.DeleteResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(logMessage, emptyRecycleBinResults)
Section titled “finer(logMessage, emptyRecycleBinResults)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(LogMessage logMessage, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| emptyRecycleBinResults | List<Database.EmptyRecycleBinResult> | The instance of List<Database.EmptyRecycleBinResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(logMessage, leadConvertResults)
Section titled “finer(logMessage, leadConvertResults)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(LogMessage logMessage, List<Database.LeadConvertResult> leadConvertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| leadConvertResults | List<Database.LeadConvertResult> | The instance of List<Database.LeadConvertResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(logMessage, mergeResults)
Section titled “finer(logMessage, mergeResults)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(LogMessage logMessage, List<Database.MergeResult> mergeResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| mergeResults | List<Database.MergeResult> | The instance of List<Database.MergeResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(logMessage, saveResults)
Section titled “finer(logMessage, saveResults)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(LogMessage logMessage, List<Database.SaveResult> saveResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| saveResults | List<Database.SaveResult> | The instance of List<Database.SaveResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(logMessage, undeleteResults)
Section titled “finer(logMessage, undeleteResults)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(LogMessage logMessage, List<Database.UndeleteResult> undeleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| undeleteResults | List<Database.UndeleteResult> | The instance of List<Database.UndeleteResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(logMessage, upsertResults)
Section titled “finer(logMessage, upsertResults)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(LogMessage logMessage, List<Database.UpsertResult> upsertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| upsertResults | List<Database.UpsertResult> | The instance of List<Database.UpsertResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(logMessage, recordId)
Section titled “finer(logMessage, recordId)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(LogMessage logMessage, Id recordId)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| recordId | Id | The record ID of an SObject to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(logMessage, record)
Section titled “finer(logMessage, record)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(LogMessage logMessage, SObject record)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| record | SObject | The SObject record to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(logMessage, records)
Section titled “finer(logMessage, records)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(LogMessage logMessage, List<SObject> records)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| records | List |
The list of SObject records to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(logMessage)
Section titled “finer(logMessage)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(LogMessage logMessage)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(message, deleteResult)
Section titled “finer(message, deleteResult)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(String message, Database.DeleteResult deleteResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| deleteResult | Database.DeleteResult | The instance of Database.DeleteResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(message, emptyRecycleBinResult)
Section titled “finer(message, emptyRecycleBinResult)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(String message, Database.EmptyRecycleBinResult emptyRecycleBinResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| emptyRecycleBinResult | Database.EmptyRecycleBinResult | The instance of Database.LeadConvertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(message, leadConvertResult)
Section titled “finer(message, leadConvertResult)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(String message, Database.LeadConvertResult leadConvertResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| leadConvertResult | Database.LeadConvertResult | The instance of Database.LeadConvertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(message, mergeResult)
Section titled “finer(message, mergeResult)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(String message, Database.MergeResult mergeResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| mergeResult | Database.MergeResult | The instance of Database.MergeResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(message, saveResult)
Section titled “finer(message, saveResult)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(String message, Database.SaveResult saveResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| saveResult | Database.SaveResult | The instance of Database.SaveResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(message, undeleteResult)
Section titled “finer(message, undeleteResult)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(String message, Database.UndeleteResult undeleteResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| undeleteResult | Database.UndeleteResult | The instance of Database.UndeleteResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(message, upsertResult)
Section titled “finer(message, upsertResult)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(String message, Database.UpsertResult upsertResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| upsertResult | Database.UpsertResult | The instance of Database.UpsertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(message, deleteResults)
Section titled “finer(message, deleteResults)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(String message, List<Database.DeleteResult> deleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| deleteResults | List<Database.DeleteResult> | The list of Database.DeleteResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(message, emptyRecycleBinResults)
Section titled “finer(message, emptyRecycleBinResults)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(String message, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| emptyRecycleBinResults | List<Database.EmptyRecycleBinResult> | The instance of List<Database.EmptyRecycleBinResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(message, leadConvertResults)
Section titled “finer(message, leadConvertResults)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(String message, List<Database.LeadConvertResult> leadConvertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| leadConvertResults | List<Database.LeadConvertResult> | The instance of List<Database.LeadConvertResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(message, mergeResults)
Section titled “finer(message, mergeResults)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(String message, List<Database.MergeResult> mergeResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| mergeResults | List<Database.MergeResult> | The list of Database.MergeResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(message, saveResults)
Section titled “finer(message, saveResults)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(String message, List<Database.SaveResult> saveResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| saveResults | List<Database.SaveResult> | The list of Database.SaveResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(message, undeleteResults)
Section titled “finer(message, undeleteResults)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(String message, List<Database.UndeleteResult> undeleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| undeleteResults | List<Database.UndeleteResult> | The list of Database.UndeleteResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(message, upsertResults)
Section titled “finer(message, upsertResults)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(String message, List<Database.UpsertResult> upsertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| upsertResults | List<Database.UpsertResult> | The list of Database.UpsertResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(message, recordId)
Section titled “finer(message, recordId)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(String message, Id recordId)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| recordId | Id | The record ID of an SObject to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(message, record)
Section titled “finer(message, record)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(String message, SObject record)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| record | SObject | The SObject record to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(message, records)
Section titled “finer(message, records)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(String message, List<SObject> records)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| records | List |
The list of SObject records to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finer(message)
Section titled “finer(message)”Creates a new log entry with logging level == System.LoggingLevel.FINER
Signature
Section titled “Signature”global static LogEntryEventBuilder finer(String message)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(logMessage, deleteResult)
Section titled “finest(logMessage, deleteResult)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(LogMessage logMessage, Database.DeleteResult deleteResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| deleteResult | Database.DeleteResult | The instance of Database.DeleteResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(logMessage, emptyRecycleBinResult)
Section titled “finest(logMessage, emptyRecycleBinResult)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(LogMessage logMessage, Database.EmptyRecycleBinResult emptyRecycleBinResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| emptyRecycleBinResult | Database.EmptyRecycleBinResult | The instance of Database.LeadConvertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(logMessage, leadConvertResult)
Section titled “finest(logMessage, leadConvertResult)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(LogMessage logMessage, Database.LeadConvertResult leadConvertResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| leadConvertResult | Database.LeadConvertResult | The instance of Database.LeadConvertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(logMessage, mergeResult)
Section titled “finest(logMessage, mergeResult)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(LogMessage logMessage, Database.MergeResult mergeResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| mergeResult | Database.MergeResult | The instance of Database.MergeResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(logMessage, saveResult)
Section titled “finest(logMessage, saveResult)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(LogMessage logMessage, Database.SaveResult saveResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| saveResult | Database.SaveResult | The instance of Database.SaveResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(logMessage, undeleteResult)
Section titled “finest(logMessage, undeleteResult)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(LogMessage logMessage, Database.UndeleteResult undeleteResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| undeleteResult | Database.UndeleteResult | The instance of Database.UndeleteResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(logMessage, upsertResult)
Section titled “finest(logMessage, upsertResult)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(LogMessage logMessage, Database.UpsertResult upsertResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| upsertResult | Database.UpsertResult | The instance of Database.UpsertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(logMessage, deleteResults)
Section titled “finest(logMessage, deleteResults)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(LogMessage logMessage, List<Database.DeleteResult> deleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| deleteResults | List<Database.DeleteResult> | The instance of List<Database.DeleteResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(logMessage, emptyRecycleBinResults)
Section titled “finest(logMessage, emptyRecycleBinResults)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(LogMessage logMessage, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| emptyRecycleBinResults | List<Database.EmptyRecycleBinResult> | The instance of List<Database.EmptyRecycleBinResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(logMessage, leadConvertResults)
Section titled “finest(logMessage, leadConvertResults)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(LogMessage logMessage, List<Database.LeadConvertResult> leadConvertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| leadConvertResults | List<Database.LeadConvertResult> | The instance of List<Database.LeadConvertResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(logMessage, mergeResults)
Section titled “finest(logMessage, mergeResults)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(LogMessage logMessage, List<Database.MergeResult> mergeResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| mergeResults | List<Database.MergeResult> | The instance of List<Database.MergeResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(logMessage, saveResults)
Section titled “finest(logMessage, saveResults)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(LogMessage logMessage, List<Database.SaveResult> saveResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| saveResults | List<Database.SaveResult> | The instance of List<Database.SaveResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(logMessage, undeleteResults)
Section titled “finest(logMessage, undeleteResults)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(LogMessage logMessage, List<Database.UndeleteResult> undeleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| undeleteResults | List<Database.UndeleteResult> | The instance of List<Database.UndeleteResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(logMessage, upsertResults)
Section titled “finest(logMessage, upsertResults)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(LogMessage logMessage, List<Database.UpsertResult> upsertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| upsertResults | List<Database.UpsertResult> | The instance of List<Database.UpsertResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(logMessage, recordId)
Section titled “finest(logMessage, recordId)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(LogMessage logMessage, Id recordId)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| recordId | Id | The record ID of an SObject to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(logMessage, record)
Section titled “finest(logMessage, record)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(LogMessage logMessage, SObject record)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| record | SObject | The SObject record to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(logMessage, records)
Section titled “finest(logMessage, records)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(LogMessage logMessage, List<SObject> records)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| records | List |
The list of SObject records to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(logMessage)
Section titled “finest(logMessage)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(LogMessage logMessage)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(message, deleteResult)
Section titled “finest(message, deleteResult)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(String message, Database.DeleteResult deleteResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| deleteResult | Database.DeleteResult | The instance of Database.DeleteResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(message, emptyRecycleBinResult)
Section titled “finest(message, emptyRecycleBinResult)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(String message, Database.EmptyRecycleBinResult emptyRecycleBinResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| emptyRecycleBinResult | Database.EmptyRecycleBinResult | The instance of Database.LeadConvertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(message, leadConvertResult)
Section titled “finest(message, leadConvertResult)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(String message, Database.LeadConvertResult leadConvertResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| leadConvertResult | Database.LeadConvertResult | The instance of Database.LeadConvertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(message, mergeResult)
Section titled “finest(message, mergeResult)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(String message, Database.MergeResult mergeResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| mergeResult | Database.MergeResult | The instance of Database.MergeResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(message, saveResult)
Section titled “finest(message, saveResult)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(String message, Database.SaveResult saveResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| saveResult | Database.SaveResult | The instance of Database.SaveResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(message, undeleteResult)
Section titled “finest(message, undeleteResult)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(String message, Database.UndeleteResult undeleteResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| undeleteResult | Database.UndeleteResult | The instance of Database.UndeleteResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(message, upsertResult)
Section titled “finest(message, upsertResult)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(String message, Database.UpsertResult upsertResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| upsertResult | Database.UpsertResult | The instance of Database.UpsertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(message, deleteResults)
Section titled “finest(message, deleteResults)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(String message, List<Database.DeleteResult> deleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| deleteResults | List<Database.DeleteResult> | The list of Database.DeleteResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(message, emptyRecycleBinResults)
Section titled “finest(message, emptyRecycleBinResults)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(String message, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| emptyRecycleBinResults | List<Database.EmptyRecycleBinResult> | The instance of List<Database.EmptyRecycleBinResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(message, leadConvertResults)
Section titled “finest(message, leadConvertResults)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(String message, List<Database.LeadConvertResult> leadConvertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| leadConvertResults | List<Database.LeadConvertResult> | The instance of List<Database.LeadConvertResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(message, mergeResults)
Section titled “finest(message, mergeResults)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(String message, List<Database.MergeResult> mergeResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| mergeResults | List<Database.MergeResult> | The list of Database.MergeResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(message, saveResults)
Section titled “finest(message, saveResults)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(String message, List<Database.SaveResult> saveResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| saveResults | List<Database.SaveResult> | The list of Database.SaveResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(message, undeleteResults)
Section titled “finest(message, undeleteResults)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(String message, List<Database.UndeleteResult> undeleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| undeleteResults | List<Database.UndeleteResult> | The list of Database.UndeleteResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(message, upsertResults)
Section titled “finest(message, upsertResults)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(String message, List<Database.UpsertResult> upsertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| upsertResults | List<Database.UpsertResult> | The list of Database.UpsertResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(message, recordId)
Section titled “finest(message, recordId)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(String message, Id recordId)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| recordId | Id | The record ID of an SObject to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(message, record)
Section titled “finest(message, record)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(String message, SObject record)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| record | SObject | The SObject record to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(message, records)
Section titled “finest(message, records)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(String message, List<SObject> records)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| records | List |
The list of SObject records to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
finest(message)
Section titled “finest(message)”Creates a new log entry with logging level == System.LoggingLevel.FINEST
Signature
Section titled “Signature”global static LogEntryEventBuilder finest(String message)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
flushBuffer()
Section titled “flushBuffer()”Discards any entries that have been generated but not yet saved
Signature
Section titled “Signature”global static void flushBuffer()Return Type
Section titled “Return Type”void
getBufferSize()
Section titled “getBufferSize()”Returns the number of entries that have been generated but not yet saved
Signature
Section titled “Signature”global static Integer getBufferSize()Return Type
Section titled “Return Type”Integer
Integer
getCurrentQuiddity()
Section titled “getCurrentQuiddity()”Returns the System.Quiddity context of the current transaction.
Signature
Section titled “Signature”global static System.Quiddity getCurrentQuiddity()Return Type
Section titled “Return Type”System.Quiddity
System.Quiddity - The value of System.Request.getCurrent().getQuiddity()
getLoggingLevel(loggingLevelName)
Section titled “getLoggingLevel(loggingLevelName)”Converts a String to an instance of LoggingLevel
Signature
Section titled “Signature”global static System.LoggingLevel getLoggingLevel(String loggingLevelName)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevelName | String | The string name of an Apex logging level |
Return Type
Section titled “Return Type”System.LoggingLevel
The matching instance of System.LoggingLevel (or a default value if a match is not found)
getParentLogTransactionId()
Section titled “getParentLogTransactionId()”Returns the transaction ID value that will be used to relate the current transaction's log to a parent log
Signature
Section titled “Signature”global static String getParentLogTransactionId()Return Type
Section titled “Return Type”String
String - The parent log's transaction ID. This must be explicitly set by calling setParentLogTransactionId(String)
getSaveMethod()
Section titled “getSaveMethod()”Returns the default save method used when calling saveLog() - set via LoggerSettings__c or by calling setSaveMethod(SaveMethod saveMethod)
Signature
Section titled “Signature”global static SaveMethod getSaveMethod()Return Type
Section titled “Return Type”SaveMethod
The enum value of Logger.SaveMethod to use for any calls to saveLog() in the current transaction
getScenario()
Section titled “getScenario()”Returns the scenario name for the current transaction - this is stored in LogEntryEvent__e.Scenario__c
and Log__c.Scenario__c , and can be used to filter & group logs
Signature
Section titled “Signature”global static String getScenario()Return Type
Section titled “Return Type”String
The value currently set as the current transaction's scenario
getTransactionId()
Section titled “getTransactionId()”Returns the unique ID generated by Nebula Logger for a particular transaction.
This value is stored in LogEntryEvent__e.TransactionId__c and Log__c.TransactionId__c .
Signature
Section titled “Signature”global static String getTransactionId()Return Type
Section titled “Return Type”String
String - A UUID value generated by Nebula Logger, using System.UUID.randomUUID().toString()
getUserLoggingLevel()
Section titled “getUserLoggingLevel()”Returns the logging level for the current user, based on the custom setting LoggerSettings__c
Signature
Section titled “Signature”global static System.LoggingLevel getUserLoggingLevel()Return Type
Section titled “Return Type”System.LoggingLevel
System.LoggingLevel - The matching instance of LoggingLevel
getVersionNumber()
Section titled “getVersionNumber()”Returns the current version number of Nebula Logger
Signature
Section titled “Signature”global static String getVersionNumber()Return Type
Section titled “Return Type”String
The current version number, in the format v0.0.0
ignoreOrigin(apexType)
Section titled “ignoreOrigin(apexType)”Adds the specified Apex type to the list of ignored origin locations for the current transaction. Any ignored types will be removed from the StackTrace__c field, and will be skipped when determining the log entry's origin location
Signature
Section titled “Signature”global static void ignoreOrigin(System.Type apexType)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| apexType | System.Type | The Apex type of the class to ignore |
Return Type
Section titled “Return Type”void
info(logMessage, deleteResult)
Section titled “info(logMessage, deleteResult)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(LogMessage logMessage, Database.DeleteResult deleteResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| deleteResult | Database.DeleteResult | The instance of Database.DeleteResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(logMessage, emptyRecycleBinResult)
Section titled “info(logMessage, emptyRecycleBinResult)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(LogMessage logMessage, Database.EmptyRecycleBinResult emptyRecycleBinResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| emptyRecycleBinResult | Database.EmptyRecycleBinResult | The instance of Database.LeadConvertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(logMessage, leadConvertResult)
Section titled “info(logMessage, leadConvertResult)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(LogMessage logMessage, Database.LeadConvertResult leadConvertResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| leadConvertResult | Database.LeadConvertResult | The instance of Database.LeadConvertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(logMessage, mergeResult)
Section titled “info(logMessage, mergeResult)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(LogMessage logMessage, Database.MergeResult mergeResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| mergeResult | Database.MergeResult | The instance of Database.MergeResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(logMessage, saveResult)
Section titled “info(logMessage, saveResult)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(LogMessage logMessage, Database.SaveResult saveResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| saveResult | Database.SaveResult | The instance of Database.SaveResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(logMessage, undeleteResult)
Section titled “info(logMessage, undeleteResult)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(LogMessage logMessage, Database.UndeleteResult undeleteResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| undeleteResult | Database.UndeleteResult | The instance of Database.UndeleteResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(logMessage, upsertResult)
Section titled “info(logMessage, upsertResult)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(LogMessage logMessage, Database.UpsertResult upsertResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| upsertResult | Database.UpsertResult | The instance of Database.UpsertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(logMessage, deleteResults)
Section titled “info(logMessage, deleteResults)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(LogMessage logMessage, List<Database.DeleteResult> deleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| deleteResults | List<Database.DeleteResult> | The instance of List<Database.DeleteResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(logMessage, emptyRecycleBinResults)
Section titled “info(logMessage, emptyRecycleBinResults)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(LogMessage logMessage, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| emptyRecycleBinResults | List<Database.EmptyRecycleBinResult> | The instance of List<Database.EmptyRecycleBinResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(logMessage, leadConvertResults)
Section titled “info(logMessage, leadConvertResults)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(LogMessage logMessage, List<Database.LeadConvertResult> leadConvertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| leadConvertResults | List<Database.LeadConvertResult> | The instance of List<Database.LeadConvertResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(logMessage, mergeResults)
Section titled “info(logMessage, mergeResults)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(LogMessage logMessage, List<Database.MergeResult> mergeResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| mergeResults | List<Database.MergeResult> | The instance of List<Database.MergeResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(logMessage, saveResults)
Section titled “info(logMessage, saveResults)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(LogMessage logMessage, List<Database.SaveResult> saveResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| saveResults | List<Database.SaveResult> | The instance of List<Database.SaveResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(logMessage, undeleteResults)
Section titled “info(logMessage, undeleteResults)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(LogMessage logMessage, List<Database.UndeleteResult> undeleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| undeleteResults | List<Database.UndeleteResult> | The instance of List<Database.UndeleteResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(logMessage, upsertResults)
Section titled “info(logMessage, upsertResults)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(LogMessage logMessage, List<Database.UpsertResult> upsertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| upsertResults | List<Database.UpsertResult> | The instance of List<Database.UpsertResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(logMessage, recordId)
Section titled “info(logMessage, recordId)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(LogMessage logMessage, Id recordId)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| recordId | Id | The record ID of an SObject to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(logMessage, record)
Section titled “info(logMessage, record)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(LogMessage logMessage, SObject record)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| record | SObject | The SObject record to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(logMessage, records)
Section titled “info(logMessage, records)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(LogMessage logMessage, List<SObject> records)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| records | List |
The list of SObject records to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(logMessage)
Section titled “info(logMessage)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(LogMessage logMessage)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(message, deleteResult)
Section titled “info(message, deleteResult)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(String message, Database.DeleteResult deleteResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| deleteResult | Database.DeleteResult | The instance of Database.DeleteResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(message, emptyRecycleBinResult)
Section titled “info(message, emptyRecycleBinResult)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(String message, Database.EmptyRecycleBinResult emptyRecycleBinResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| emptyRecycleBinResult | Database.EmptyRecycleBinResult | The instance of Database.LeadConvertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(message, leadConvertResult)
Section titled “info(message, leadConvertResult)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(String message, Database.LeadConvertResult leadConvertResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| leadConvertResult | Database.LeadConvertResult | The instance of Database.LeadConvertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(message, mergeResult)
Section titled “info(message, mergeResult)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(String message, Database.MergeResult mergeResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| mergeResult | Database.MergeResult | The instance of Database.MergeResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(message, saveResult)
Section titled “info(message, saveResult)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(String message, Database.SaveResult saveResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| saveResult | Database.SaveResult | The instance of Database.SaveResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(message, undeleteResult)
Section titled “info(message, undeleteResult)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(String message, Database.UndeleteResult undeleteResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| undeleteResult | Database.UndeleteResult | The instance of Database.UndeleteResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(message, upsertResult)
Section titled “info(message, upsertResult)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(String message, Database.UpsertResult upsertResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| upsertResult | Database.UpsertResult | The instance of Database.UpsertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(message, deleteResults)
Section titled “info(message, deleteResults)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(String message, List<Database.DeleteResult> deleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| deleteResults | List<Database.DeleteResult> | The list of Database.DeleteResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(message, emptyRecycleBinResults)
Section titled “info(message, emptyRecycleBinResults)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(String message, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| emptyRecycleBinResults | List<Database.EmptyRecycleBinResult> | The instance of List<Database.EmptyRecycleBinResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(message, leadConvertResults)
Section titled “info(message, leadConvertResults)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(String message, List<Database.LeadConvertResult> leadConvertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| leadConvertResults | List<Database.LeadConvertResult> | The instance of List<Database.LeadConvertResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(message, mergeResults)
Section titled “info(message, mergeResults)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(String message, List<Database.MergeResult> mergeResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| mergeResults | List<Database.MergeResult> | The list of Database.MergeResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(message, saveResults)
Section titled “info(message, saveResults)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(String message, List<Database.SaveResult> saveResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| saveResults | List<Database.SaveResult> | The list of Database.SaveResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(message, undeleteResults)
Section titled “info(message, undeleteResults)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(String message, List<Database.UndeleteResult> undeleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| undeleteResults | List<Database.UndeleteResult> | The list of Database.UndeleteResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(message, upsertResults)
Section titled “info(message, upsertResults)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(String message, List<Database.UpsertResult> upsertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| upsertResults | List<Database.UpsertResult> | The list of Database.UpsertResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(message, recordId)
Section titled “info(message, recordId)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(String message, Id recordId)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| recordId | Id | The record ID of an SObject to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(message, record)
Section titled “info(message, record)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(String message, SObject record)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| record | SObject | The SObject record to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(message, records)
Section titled “info(message, records)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(String message, List<SObject> records)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| records | List |
The list of SObject records to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
info(message)
Section titled “info(message)”Creates a new log entry with logging level == System.LoggingLevel.INFO
Signature
Section titled “Signature”global static LogEntryEventBuilder info(String message)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
isDebugEnabled()
Section titled “isDebugEnabled()”Indicates if logging level 'DEBUG' is enabled for the current user, based on the custom setting LoggerSettings__c
Signature
Section titled “Signature”global static Boolean isDebugEnabled()Return Type
Section titled “Return Type”Boolean
Boolean
isEnabled()
Section titled “isEnabled()”Indicates if logging has been enabled for the current user, based on the custom setting LoggerSettings__c
Signature
Section titled “Signature”global static Boolean isEnabled()Return Type
Section titled “Return Type”Boolean
Boolean
isEnabled(loggingLevel)
Section titled “isEnabled(loggingLevel)”Indicates if logging for the specified logging level is enabled for the current user, based on the custom setting LoggerSettings__c
Signature
Section titled “Signature”global static Boolean isEnabled(System.LoggingLevel loggingLevel)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | - The logging level to check |
Return Type
Section titled “Return Type”Boolean
Boolean
isErrorEnabled()
Section titled “isErrorEnabled()”Indicates if logging level 'ERROR' is enabled for the current user, based on the custom setting LoggerSettings__c
Signature
Section titled “Signature”global static Boolean isErrorEnabled()Return Type
Section titled “Return Type”Boolean
Boolean
isFineEnabled()
Section titled “isFineEnabled()”Indicates if logging level 'FINE' is enabled for the current user, based on the custom setting LoggerSettings__c
Signature
Section titled “Signature”global static Boolean isFineEnabled()Return Type
Section titled “Return Type”Boolean
Boolean
isFinerEnabled()
Section titled “isFinerEnabled()”Indicates if logging level 'FINER' is enabled for the current user, based on the custom setting LoggerSettings__c
Signature
Section titled “Signature”global static Boolean isFinerEnabled()Return Type
Section titled “Return Type”Boolean
Boolean
isFinestEnabled()
Section titled “isFinestEnabled()”Indicates if logging level 'FINEST' is enabled for the current user, based on the custom setting LoggerSettings__c
Signature
Section titled “Signature”global static Boolean isFinestEnabled()Return Type
Section titled “Return Type”Boolean
Boolean
isInfoEnabled()
Section titled “isInfoEnabled()”Indicates if logging level 'INFO' is enabled for the current user, based on the custom setting LoggerSettings__c
Signature
Section titled “Signature”global static Boolean isInfoEnabled()Return Type
Section titled “Return Type”Boolean
Boolean
isSavingSuspended()
Section titled “isSavingSuspended()”Indicates if saving has been temporarily suspended for the current transaction
Signature
Section titled “Signature”global static Boolean isSavingSuspended()Return Type
Section titled “Return Type”Boolean
Boolean
isWarnEnabled()
Section titled “isWarnEnabled()”Indicates if logging level 'WARN' is enabled for the current user, based on the custom setting LoggerSettings__c
Signature
Section titled “Signature”global static Boolean isWarnEnabled()Return Type
Section titled “Return Type”Boolean
Boolean
logDatabaseErrors(loggingLevel, logMessage, deleteResults)
Section titled “logDatabaseErrors(loggingLevel, logMessage, deleteResults)”Creates a log entry for any results within the provided List<DeleteResult> where isSuccess() != true
Signature
Section titled “Signature”global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, LogMessage logMessage, List<Database.DeleteResult> deleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level to use for the log entry |
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| deleteResults | List<Database.DeleteResult> | The instance of List<Database.DeleteResult> to log |
Return Type
Section titled “Return Type”The instance of LogEntryBuilder was generated to log any errors, or null if there are no errors
logDatabaseErrors(loggingLevel, logMessage, deleteResults, records)
Section titled “logDatabaseErrors(loggingLevel, logMessage, deleteResults, records)”SUPPRESSWARNINGS
Creates a log entry for any results within the provided List<DeleteResult> where isSuccess() != true
Signature
Section titled “Signature”global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, LogMessage logMessage, List<Database.DeleteResult> deleteResults, List<SObject> records)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level to use for the log entry |
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| deleteResults | List<Database.DeleteResult> | The instance of List<Database.DeleteResult> to log |
| records | List |
The instance of List<SObject> that correspond to the instance of List<Database.DeleteResult> to log |
Return Type
Section titled “Return Type”The instance of LogEntryBuilder was generated to log any errors, or null if there are no errors
logDatabaseErrors(loggingLevel, message, deleteResults)
Section titled “logDatabaseErrors(loggingLevel, message, deleteResults)”Creates a log entry for any results within the provided List<DeleteResult> where isSuccess() != true
Signature
Section titled “Signature”global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, String message, List<Database.DeleteResult> deleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level to use for the log entry |
| message | String | The string to use to set the entry's message field |
| deleteResults | List<Database.DeleteResult> | The instance of List<Database.DeleteResult> to log |
Return Type
Section titled “Return Type”The instance of LogEntryBuilder was generated to log any errors, or null if there are no errors
logDatabaseErrors(loggingLevel, message, deleteResults, records)
Section titled “logDatabaseErrors(loggingLevel, message, deleteResults, records)”SUPPRESSWARNINGS
Creates a log entry for any results within the provided List<DeleteResult> where isSuccess() != true
Signature
Section titled “Signature”global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, String message, List<Database.DeleteResult> deleteResults, List<SObject> records)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level to use for the log entry |
| message | String | The string to use to set the entry's message field |
| deleteResults | List<Database.DeleteResult> | The instance of List<Database.DeleteResult> to log |
| records | List |
The instance of List<SObject> that correspond to the instance of List<Database.DeleteResult> to log |
Return Type
Section titled “Return Type”The instance of LogEntryBuilder was generated to log any errors, or null if there are no errors
logDatabaseErrors(loggingLevel, logMessage, emptyRecycleBinResults)
Section titled “logDatabaseErrors(loggingLevel, logMessage, emptyRecycleBinResults)”Creates a log entry for any results within the provided List<EmptyRecycleBinResult> where isSuccess() != true
Signature
Section titled “Signature”global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, LogMessage logMessage, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level to use for the log entry |
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| emptyRecycleBinResults | List<Database.EmptyRecycleBinResult> | The instance of List<Database.EmptyRecycleBinResult> to log |
Return Type
Section titled “Return Type”The instance of LogEntryBuilder was generated to log any errors, or null if there are no errors
logDatabaseErrors(loggingLevel, logMessage, emptyRecycleBinResults, records)
Section titled “logDatabaseErrors(loggingLevel, logMessage, emptyRecycleBinResults, records)”SUPPRESSWARNINGS
Creates a log entry for any results within the provided List<EmptyRecycleBinResult> where isSuccess() != true
Signature
Section titled “Signature”global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, LogMessage logMessage, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults, List<SObject> records)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level to use for the log entry |
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| emptyRecycleBinResults | List<Database.EmptyRecycleBinResult> | The instance of List<Database.EmptyRecycleBinResult> to log |
| records | List |
The instance of List<SObject> having info about the actual record |
Return Type
Section titled “Return Type”The instance of LogEntryBuilder was generated to log any errors, or null if there are no errors
logDatabaseErrors(loggingLevel, message, emptyRecycleBinResults)
Section titled “logDatabaseErrors(loggingLevel, message, emptyRecycleBinResults)”Creates a log entry for any results within the provided List<EmptyRecycleBinResult> where isSuccess() != true
Signature
Section titled “Signature”global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, String message, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level to use for the log entry |
| message | String | The string to use to set the entry's message field |
| emptyRecycleBinResults | List<Database.EmptyRecycleBinResult> | The instance of List<Database.EmptyRecycleBinResult> to log |
Return Type
Section titled “Return Type”The instance of LogEntryBuilder was generated to log any errors, or null if there are no errors
logDatabaseErrors(loggingLevel, message, emptyRecycleBinResults, records)
Section titled “logDatabaseErrors(loggingLevel, message, emptyRecycleBinResults, records)”SUPPRESSWARNINGS
Creates a log entry for any results within the provided List<EmptyRecycleBinResult> where isSuccess() != true
Signature
Section titled “Signature”global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, String message, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults, List<SObject> records)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level to use for the log entry |
| message | String | The string to use to set the entry's message field |
| emptyRecycleBinResults | List<Database.EmptyRecycleBinResult> | The instance of List<Database.EmptyRecycleBinResult> to log |
| records | List |
The instance of List<SObject> having info about the actual record |
Return Type
Section titled “Return Type”The instance of LogEntryBuilder was generated to log any errors, or null if there are no errors
logDatabaseErrors(loggingLevel, logMessage, leadConvertResults)
Section titled “logDatabaseErrors(loggingLevel, logMessage, leadConvertResults)”Creates a log entry for any results within the provided List<LeadConvertResult> where isSuccess() != true
Signature
Section titled “Signature”global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, LogMessage logMessage, List<Database.LeadConvertResult> leadConvertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level to use for the log entry |
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| leadConvertResults | List<Database.LeadConvertResult> | The instance of List<Database.LeadConvertResult> to log |
Return Type
Section titled “Return Type”The instance of LogEntryBuilder was generated to log any errors, or null if there are no errors
logDatabaseErrors(loggingLevel, logMessage, leadConvertResults, records)
Section titled “logDatabaseErrors(loggingLevel, logMessage, leadConvertResults, records)”SUPPRESSWARNINGS
Creates a log entry for any results within the provided List<LeadConvertResult> where isSuccess() != true
Signature
Section titled “Signature”global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, LogMessage logMessage, List<Database.LeadConvertResult> leadConvertResults, List<SObject> records)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level to use for the log entry |
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| leadConvertResults | List<Database.LeadConvertResult> | The instance of List<Database.LeadConvertResult> to log |
| records | List |
The instance of List<SObject> having info about the actual record |
Return Type
Section titled “Return Type”The instance of LogEntryBuilder was generated to log any errors, or null if there are no errors
logDatabaseErrors(loggingLevel, message, leadConvertResults)
Section titled “logDatabaseErrors(loggingLevel, message, leadConvertResults)”Creates a log entry for any results within the provided List<LeadConvertResult> where isSuccess() != true
Signature
Section titled “Signature”global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, String message, List<Database.LeadConvertResult> leadConvertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level to use for the log entry |
| message | String | The string to use to set the entry's message field |
| leadConvertResults | List<Database.LeadConvertResult> | The instance of List<Database.LeadConvertResult> to log |
Return Type
Section titled “Return Type”The instance of LogEntryBuilder was generated to log any errors, or null if there are no errors
logDatabaseErrors(loggingLevel, message, leadConvertResults, records)
Section titled “logDatabaseErrors(loggingLevel, message, leadConvertResults, records)”SUPPRESSWARNINGS
Creates a log entry for any results within the provided List<LeadConvertResult> where isSuccess() != true
Signature
Section titled “Signature”global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, String message, List<Database.LeadConvertResult> leadConvertResults, List<SObject> records)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level to use for the log entry |
| message | String | The string to use to set the entry's message field |
| leadConvertResults | List<Database.LeadConvertResult> | The instance of List<Database.LeadConvertResult> to log |
| records | List |
The instance of List<SObject> having info about the actual record |
Return Type
Section titled “Return Type”The instance of LogEntryBuilder was generated to log any errors, or null if there are no errors
logDatabaseErrors(loggingLevel, logMessage, mergeResults)
Section titled “logDatabaseErrors(loggingLevel, logMessage, mergeResults)”Creates a log entry for any results within the provided List<MergeResult> where isSuccess() != true
Signature
Section titled “Signature”global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, LogMessage logMessage, List<Database.MergeResult> mergeResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level to use for the log entry |
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| mergeResults | List<Database.MergeResult> | The instance of List<Database.MergeResult> to log |
Return Type
Section titled “Return Type”The instance of LogEntryBuilder was generated to log any errors, or null if there are no errors
logDatabaseErrors(loggingLevel, logMessage, mergeResults, records)
Section titled “logDatabaseErrors(loggingLevel, logMessage, mergeResults, records)”SUPPRESSWARNINGS
Creates a log entry for any results within the provided List<MergeResult> where isSuccess() != true
Signature
Section titled “Signature”global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, LogMessage logMessage, List<Database.MergeResult> mergeResults, List<SObject> records)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level to use for the log entry |
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| mergeResults | List<Database.MergeResult> | The instance of List<Database.MergeResult> to log |
| records | List |
The instance of List<SObject> having info about the actual record |
Return Type
Section titled “Return Type”The instance of LogEntryBuilder was generated to log any errors, or null if there are no errors
logDatabaseErrors(loggingLevel, message, mergeResults)
Section titled “logDatabaseErrors(loggingLevel, message, mergeResults)”Creates a log entry for any results within the provided List<MergeResult> where isSuccess() != true
Signature
Section titled “Signature”global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, String message, List<Database.MergeResult> mergeResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level to use for the log entry |
| message | String | The string to use to set the entry's message field |
| mergeResults | List<Database.MergeResult> | The instance of List<Database.MergeResult> to log |
Return Type
Section titled “Return Type”The instance of LogEntryBuilder was generated to log any errors, or null if there are no errors
logDatabaseErrors(loggingLevel, message, mergeResults, records)
Section titled “logDatabaseErrors(loggingLevel, message, mergeResults, records)”SUPPRESSWARNINGS
Creates a log entry for any results within the provided List<MergeResult> where isSuccess() != true
Signature
Section titled “Signature”global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, String message, List<Database.MergeResult> mergeResults, List<SObject> records)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level to use for the log entry |
| message | String | The string to use to set the entry's message field |
| mergeResults | List<Database.MergeResult> | The instance of List<Database.MergeResult> to log |
| records | List |
The instance of List<SObject> having info about the actual record |
Return Type
Section titled “Return Type”The instance of LogEntryBuilder was generated to log any errors, or null if there are no errors
logDatabaseErrors(loggingLevel, logMessage, saveResults)
Section titled “logDatabaseErrors(loggingLevel, logMessage, saveResults)”Creates a log entry for any results within the provided List<SaveResult> where isSuccess() != true
Signature
Section titled “Signature”global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, LogMessage logMessage, List<Database.SaveResult> saveResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level to use for the log entry |
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| saveResults | List<Database.SaveResult> | The instance of List<Database.SaveResult> to log |
Return Type
Section titled “Return Type”The instance of LogEntryBuilder was generated to log any errors, or null if there are no errors
logDatabaseErrors(loggingLevel, logMessage, saveResults, records)
Section titled “logDatabaseErrors(loggingLevel, logMessage, saveResults, records)”SUPPRESSWARNINGS
Creates a log entry for any results within the provided List<SaveResult> where isSuccess() != true
Signature
Section titled “Signature”global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, LogMessage logMessage, List<Database.SaveResult> saveResults, List<SObject> records)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level to use for the log entry |
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| saveResults | List<Database.SaveResult> | The instance of List<Database.SaveResult> to log |
| records | List |
The instance of List<SObject> having info about the actual record |
Return Type
Section titled “Return Type”The instance of LogEntryBuilder was generated to log any errors, or null if there are no errors
logDatabaseErrors(loggingLevel, message, saveResults)
Section titled “logDatabaseErrors(loggingLevel, message, saveResults)”Creates a log entry for any results within the provided List<SaveResult> where isSuccess() != true
Signature
Section titled “Signature”global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, String message, List<Database.SaveResult> saveResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level to use for the log entry |
| message | String | The string to use to set the entry's message field |
| saveResults | List<Database.SaveResult> | The instance of List<Database.SaveResult> to log |
Return Type
Section titled “Return Type”The instance of LogEntryBuilder was generated to log any errors, or null if there are no errors
logDatabaseErrors(loggingLevel, message, saveResults, records)
Section titled “logDatabaseErrors(loggingLevel, message, saveResults, records)”SUPPRESSWARNINGS
Creates a log entry for any results within the provided List<SaveResult> where isSuccess() != true
Signature
Section titled “Signature”global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, String message, List<Database.SaveResult> saveResults, List<SObject> records)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level to use for the log entry |
| message | String | The string to use to set the entry's message field |
| saveResults | List<Database.SaveResult> | The instance of List<Database.SaveResult> to log |
| records | List |
The instance of List<SObject> having info about the actual record |
Return Type
Section titled “Return Type”The instance of LogEntryBuilder was generated to log any errors, or null if there are no errors
logDatabaseErrors(loggingLevel, logMessage, upsertResults)
Section titled “logDatabaseErrors(loggingLevel, logMessage, upsertResults)”Creates a log entry for any results within the provided List<UpsertResult> where isSuccess() != true
Signature
Section titled “Signature”global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, LogMessage logMessage, List<Database.UpsertResult> upsertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level to use for the log entry |
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| upsertResults | List<Database.UpsertResult> | The instance of List<Database.UpsertResult> to log |
Return Type
Section titled “Return Type”The instance of LogEntryBuilder was generated to log any errors, or null if there are no errors
logDatabaseErrors(loggingLevel, logMessage, upsertResults, records)
Section titled “logDatabaseErrors(loggingLevel, logMessage, upsertResults, records)”SUPPRESSWARNINGS
Creates a log entry for any results within the provided List<UpsertResult> where isSuccess() != true
Signature
Section titled “Signature”global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, LogMessage logMessage, List<Database.UpsertResult> upsertResults, List<SObject> records)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level to use for the log entry |
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| upsertResults | List<Database.UpsertResult> | The instance of List<Database.UpsertResult> to log |
| records | List |
The instance of List<SObject> that correspond to the instance of List<Database.UpsertResult> to log |
Return Type
Section titled “Return Type”The instance of LogEntryBuilder was generated to log any errors, or null if there are no errors
logDatabaseErrors(loggingLevel, message, upsertResults)
Section titled “logDatabaseErrors(loggingLevel, message, upsertResults)”Creates a log entry for any results within the provided List<UpsertResult> where isSuccess() != true
Signature
Section titled “Signature”global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, String message, List<Database.UpsertResult> upsertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level to use for the log entry |
| message | String | The string to use to set the entry's message field |
| upsertResults | List<Database.UpsertResult> | The instance of List<Database.UpsertResult> to log |
Return Type
Section titled “Return Type”The instance of LogEntryBuilder was generated to log any errors, or null if there are no errors
logDatabaseErrors(loggingLevel, message, upsertResults, records)
Section titled “logDatabaseErrors(loggingLevel, message, upsertResults, records)”SUPPRESSWARNINGS
Creates a log entry for any results within the provided List<UpsertResult> where isSuccess() != true
Signature
Section titled “Signature”global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, String message, List<Database.UpsertResult> upsertResults, List<SObject> records)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level to use for the log entry |
| message | String | The string to use to set the entry's message field |
| upsertResults | List<Database.UpsertResult> | The instance of List<Database.UpsertResult> to log |
| records | List |
The instance of List<SObject> that correspond to the instance of List<Database.UpsertResult> to log |
Return Type
Section titled “Return Type”The instance of LogEntryBuilder was generated to log any errors, or null if there are no errors
logDatabaseErrors(loggingLevel, logMessage, undeleteResults)
Section titled “logDatabaseErrors(loggingLevel, logMessage, undeleteResults)”Creates a log entry for any results within the provided List<UndeleteResult> where isSuccess() != true
Signature
Section titled “Signature”global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, LogMessage logMessage, List<Database.UndeleteResult> undeleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level to use for the log entry |
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| undeleteResults | List<Database.UndeleteResult> | The instance of List<Database.UndeleteResult> to log |
Return Type
Section titled “Return Type”The instance of LogEntryBuilder was generated to log any errors, or null if there are no errors
logDatabaseErrors(loggingLevel, logMessage, undeleteResults, records)
Section titled “logDatabaseErrors(loggingLevel, logMessage, undeleteResults, records)”SUPPRESSWARNINGS
Creates a log entry for any results within the provided List<UndeleteResult> where isSuccess() != true
Signature
Section titled “Signature”global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, LogMessage logMessage, List<Database.UndeleteResult> undeleteResults, List<SObject> records)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level to use for the log entry |
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| undeleteResults | List<Database.UndeleteResult> | The instance of List<Database.UndeleteResult> to log |
| records | List |
The instance of List<SObject> having info about the actual record |
Return Type
Section titled “Return Type”The instance of LogEntryBuilder was generated to log any errors, or null if there are no errors
logDatabaseErrors(loggingLevel, message, undeleteResults)
Section titled “logDatabaseErrors(loggingLevel, message, undeleteResults)”Creates a log entry for any results within the provided List<UndeleteResult> where isSuccess() != true
Signature
Section titled “Signature”global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, String message, List<Database.UndeleteResult> undeleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level to use for the log entry |
| message | String | The string to use to set the entry's message field |
| undeleteResults | List<Database.UndeleteResult> | The instance of List<Database.UndeleteResult> to log |
Return Type
Section titled “Return Type”The instance of LogEntryBuilder was generated to log any errors, or null if there are no errors
logDatabaseErrors(loggingLevel, message, undeleteResults, records)
Section titled “logDatabaseErrors(loggingLevel, message, undeleteResults, records)”SUPPRESSWARNINGS
Creates a log entry for any results within the provided List<UndeleteResult> where isSuccess() != true
Signature
Section titled “Signature”global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, String message, List<Database.UndeleteResult> undeleteResults, List<SObject> records)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level to use for the log entry |
| message | String | The string to use to set the entry's message field |
| undeleteResults | List<Database.UndeleteResult> | The instance of List<Database.UndeleteResult> to log |
| records | List |
The instance of List<SObject> having info about the actual record |
Return Type
Section titled “Return Type”The instance of LogEntryBuilder was generated to log any errors, or null if there are no errors
meetsUserLoggingLevel(logEntryLoggingLevel)
Section titled “meetsUserLoggingLevel(logEntryLoggingLevel)”Indicates if the specified logging level is enabled for the current user, based on the custom setting LoggerSettings__c
Signature
Section titled “Signature”global static Boolean meetsUserLoggingLevel(System.LoggingLevel logEntryLoggingLevel)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logEntryLoggingLevel | System.LoggingLevel | the logging level to check. |
Return Type
Section titled “Return Type”Boolean
Boolean
newEntry(loggingLevel, logMessage, shouldSave)
Section titled “newEntry(loggingLevel, logMessage, shouldSave)”SUPPRESSWARNINGS
Adds a new instance of LogEntryEventBuilder to Logger's buffer, when shouldSave is true
Signature
Section titled “Signature”global static LogEntryEventBuilder newEntry(System.LoggingLevel loggingLevel, LogMessage logMessage, Boolean shouldSave)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level enum value for the new entry |
| logMessage | LogMessage | The instance of LogMessage to use as the entry's message |
| shouldSave | Boolean | Controls if the new entry will be saved. This can be used to save entries, even if the entry's logging level does not meet the user's logging level |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder
newEntry(loggingLevel, logMessage)
Section titled “newEntry(loggingLevel, logMessage)”Adds a new instance of LogEntryEventBuilder to Logger's buffer, if it meets the user's logging level
Signature
Section titled “Signature”global static LogEntryEventBuilder newEntry(System.LoggingLevel loggingLevel, LogMessage logMessage)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level enum value for the new entry |
| logMessage | LogMessage | The instance of LogMessage to use as the entry's message |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder
newEntry(loggingLevel, message, shouldSave)
Section titled “newEntry(loggingLevel, message, shouldSave)”SUPPRESSWARNINGS
Adds a new instance of LogEntryEventBuilder to Logger's buffer, if it meets the user's logging level
Signature
Section titled “Signature”global static LogEntryEventBuilder newEntry(System.LoggingLevel loggingLevel, String message, Boolean shouldSave)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level enum value for the new entry |
| message | String | The string to use as the entry's message |
| shouldSave | Boolean | Controls if the new entry will be saved. This can be used to save entries, even if the entry's logging level does not meet the user's logging level |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder
newEntry(loggingLevel, message)
Section titled “newEntry(loggingLevel, message)”Adds a new instance of LogEntryEventBuilder to Logger's buffer, if it meets the user's logging level
Signature
Section titled “Signature”global static LogEntryEventBuilder newEntry(System.LoggingLevel loggingLevel, String message)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| loggingLevel | System.LoggingLevel | The logging level enum value for the new entry |
| message | String | The string to use as the entry's message |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder
resumeSaving()
Section titled “resumeSaving()”Resumes saving for the current transaction, used to reverse suspendSaving(). Any calls to saveLog() are ignored until saving is resumed.
Signature
Section titled “Signature”global static void resumeSaving()Return Type
Section titled “Return Type”void
saveLog()
Section titled “saveLog()”INVOCABLEMETHOD
Saves any entries in Logger's buffer. By default, entries are saved via Apex's EventBus and can be overridden with setSaveMethod(SaveMethod saveMethod)
Signature
Section titled “Signature”global static void saveLog()Return Type
Section titled “Return Type”void
saveLog(saveMethod)
Section titled “saveLog(saveMethod)”Saves any entries in Logger's buffer, using the specified save method for only this call. All subsequent calls to saveLog() will use the transaction save method.
Signature
Section titled “Signature”global static void saveLog(SaveMethod saveMethod)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| saveMethod | SaveMethod | The enum value of Logger.SaveMethod to use for this specific save action. |
Return Type
Section titled “Return Type”void
setAsyncContext(batchableContext)
Section titled “setAsyncContext(batchableContext)”Stores additional details about the current transacation's async context
Signature
Section titled “Signature”global static void setAsyncContext(Database.BatchableContext batchableContext)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| batchableContext | Database.BatchableContext | - The instance of Database.BatchableContext to track |
Return Type
Section titled “Return Type”void
setAsyncContext(finalizerContext)
Section titled “setAsyncContext(finalizerContext)”Stores additional details about the current transacation's async context
Signature
Section titled “Signature”global static void setAsyncContext(System.FinalizerContext finalizerContext)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| finalizerContext | System.FinalizerContext | - The instance of System.FinalizerContext to track |
Return Type
Section titled “Return Type”void
setAsyncContext(queueableContext)
Section titled “setAsyncContext(queueableContext)”Stores additional details about the current transacation's async context
Signature
Section titled “Signature”global static void setAsyncContext(System.QueueableContext queueableContext)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| queueableContext | System.QueueableContext | - The instance of System.QueueableContext to track |
Return Type
Section titled “Return Type”void
setAsyncContext(schedulableContext)
Section titled “setAsyncContext(schedulableContext)”Stores additional details about the current transacation's async context
Signature
Section titled “Signature”global static void setAsyncContext(System.SchedulableContext schedulableContext)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| schedulableContext | System.SchedulableContext | - The instance of System.SchedulableContext to track |
Return Type
Section titled “Return Type”void
setField(field, fieldValue)
Section titled “setField(field, fieldValue)”Sets a field value on every generated LogEntryEvent__e record
Signature
Section titled “Signature”global static void setField(Schema.SObjectField field, Object fieldValue)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| field | Schema.SObjectField | The Schema.SObjectField token of the field to populate |
on each LogEntryEvent__e record in the current transaction |
||
| fieldValue | Object | The Object value to populate in the provided field |
Return Type
Section titled “Return Type”void
setField(fieldToValue)
Section titled “setField(fieldToValue)”Sets multiple field values oon every generated LogEntryEvent__e record
Signature
Section titled “Signature”global static void setField(Map<Schema.SObjectField,Object> fieldToValue)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| fieldToValue | Map<Schema.SObjectField,Object> | An instance of Map<Schema.SObjectField, Object> containing the |
the fields & values to populate on each LogEntryEvent__e record in the current transaction |
Return Type
Section titled “Return Type”void
setParentLogTransactionId(parentTransactionId)
Section titled “setParentLogTransactionId(parentTransactionId)”Relates the current transaction's log to a parent log via the field Logc.ParentLogc This is useful for relating multiple asynchronous operations together, such as batch & queueable jobs.
Signature
Section titled “Signature”global static void setParentLogTransactionId(String parentTransactionId)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| parentTransactionId | String | - The transaction ID of the original parent transaction |
Return Type
Section titled “Return Type”void
setSaveMethod(saveMethod)
Section titled “setSaveMethod(saveMethod)”Sets the default save method used when calling saveLog() - any subsequent calls to saveLog() will use the specified save method
Signature
Section titled “Signature”global static void setSaveMethod(SaveMethod saveMethod)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| saveMethod | SaveMethod | The enum value of Logger.SaveMethod to use for any other calls to saveLog() in the current transaction |
Return Type
Section titled “Return Type”void
setScenario(scenario)
Section titled “setScenario(scenario)”SUPPRESSWARNINGS
Sets the current scenario, which can be used to identify modules or groupings of for the current transaction
Signature
Section titled “Signature”global static void setScenario(String scenario)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| scenario | String | The name to use for the current transaction's scenario |
Return Type
Section titled “Return Type”void
suspendSaving()
Section titled “suspendSaving()”Pauses saving for the current transaction. Any calls to saveLog() are ignored until saving is resumed.
Signature
Section titled “Signature”global static void suspendSaving()Return Type
Section titled “Return Type”void
warn(logMessage, deleteResult)
Section titled “warn(logMessage, deleteResult)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(LogMessage logMessage, Database.DeleteResult deleteResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| deleteResult | Database.DeleteResult | The instance of Database.DeleteResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(logMessage, emptyRecycleBinResult)
Section titled “warn(logMessage, emptyRecycleBinResult)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(LogMessage logMessage, Database.EmptyRecycleBinResult emptyRecycleBinResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| emptyRecycleBinResult | Database.EmptyRecycleBinResult | The instance of Database.LeadConvertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(logMessage, leadConvertResult)
Section titled “warn(logMessage, leadConvertResult)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(LogMessage logMessage, Database.LeadConvertResult leadConvertResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| leadConvertResult | Database.LeadConvertResult | The instance of Database.LeadConvertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(logMessage, mergeResult)
Section titled “warn(logMessage, mergeResult)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(LogMessage logMessage, Database.MergeResult mergeResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| mergeResult | Database.MergeResult | The instance of Database.MergeResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(logMessage, saveResult)
Section titled “warn(logMessage, saveResult)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(LogMessage logMessage, Database.SaveResult saveResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| saveResult | Database.SaveResult | The instance of Database.SaveResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(logMessage, undeleteResult)
Section titled “warn(logMessage, undeleteResult)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(LogMessage logMessage, Database.UndeleteResult undeleteResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| undeleteResult | Database.UndeleteResult | The instance of Database.UndeleteResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(logMessage, upsertResult)
Section titled “warn(logMessage, upsertResult)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(LogMessage logMessage, Database.UpsertResult upsertResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| upsertResult | Database.UpsertResult | The instance of Database.UpsertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(logMessage, deleteResults)
Section titled “warn(logMessage, deleteResults)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(LogMessage logMessage, List<Database.DeleteResult> deleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| deleteResults | List<Database.DeleteResult> | The instance of List<Database.DeleteResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(logMessage, emptyRecycleBinResults)
Section titled “warn(logMessage, emptyRecycleBinResults)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(LogMessage logMessage, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| emptyRecycleBinResults | List<Database.EmptyRecycleBinResult> | The instance of List<Database.EmptyRecycleBinResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(logMessage, leadConvertResults)
Section titled “warn(logMessage, leadConvertResults)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(LogMessage logMessage, List<Database.LeadConvertResult> leadConvertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| leadConvertResults | List<Database.LeadConvertResult> | The instance of List<Database.LeadConvertResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(logMessage, mergeResults)
Section titled “warn(logMessage, mergeResults)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(LogMessage logMessage, List<Database.MergeResult> mergeResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| mergeResults | List<Database.MergeResult> | The instance of List<Database.MergeResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(logMessage, saveResults)
Section titled “warn(logMessage, saveResults)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(LogMessage logMessage, List<Database.SaveResult> saveResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| saveResults | List<Database.SaveResult> | The instance of List<Database.SaveResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(logMessage, undeleteResults)
Section titled “warn(logMessage, undeleteResults)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(LogMessage logMessage, List<Database.UndeleteResult> undeleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| undeleteResults | List<Database.UndeleteResult> | The instance of List<Database.UndeleteResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(logMessage, upsertResults)
Section titled “warn(logMessage, upsertResults)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(LogMessage logMessage, List<Database.UpsertResult> upsertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| upsertResults | List<Database.UpsertResult> | The instance of List<Database.UpsertResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(logMessage, apexException)
Section titled “warn(logMessage, apexException)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(LogMessage logMessage, System.Exception apexException)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| apexException | System.Exception | The instance of System.Exception to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(logMessage, recordId, apexException)
Section titled “warn(logMessage, recordId, apexException)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(LogMessage logMessage, Id recordId, System.Exception apexException)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| recordId | Id | The record ID of an SObject to log |
| apexException | System.Exception | The instance of System.Exception to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(logMessage, recordId)
Section titled “warn(logMessage, recordId)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(LogMessage logMessage, Id recordId)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| recordId | Id | The record ID of an SObject to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(logMessage, record, apexException)
Section titled “warn(logMessage, record, apexException)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(LogMessage logMessage, SObject record, System.Exception apexException)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| record | SObject | The SObject record to log |
| apexException | System.Exception | The instance of System.Exception to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(logMessage, record)
Section titled “warn(logMessage, record)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(LogMessage logMessage, SObject record)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| record | SObject | The SObject record to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(logMessage, records, apexException)
Section titled “warn(logMessage, records, apexException)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(LogMessage logMessage, List<SObject> records, System.Exception apexException)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| records | List |
The list of SObject records to log |
| apexException | System.Exception | The instance of System.Exception to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(logMessage, records)
Section titled “warn(logMessage, records)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(LogMessage logMessage, List<SObject> records)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
| records | List |
The list of SObject records to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(logMessage)
Section titled “warn(logMessage)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(LogMessage logMessage)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| logMessage | LogMessage | The instance of LogMessage to use to set the entry's message field |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(message, deleteResult)
Section titled “warn(message, deleteResult)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(String message, Database.DeleteResult deleteResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| deleteResult | Database.DeleteResult | The instance of Database.DeleteResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(message, emptyRecycleBinResult)
Section titled “warn(message, emptyRecycleBinResult)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(String message, Database.EmptyRecycleBinResult emptyRecycleBinResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| emptyRecycleBinResult | Database.EmptyRecycleBinResult | The instance of Database.LeadConvertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(message, leadConvertResult)
Section titled “warn(message, leadConvertResult)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(String message, Database.LeadConvertResult leadConvertResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| leadConvertResult | Database.LeadConvertResult | The instance of Database.LeadConvertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(message, mergeResult)
Section titled “warn(message, mergeResult)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(String message, Database.MergeResult mergeResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| mergeResult | Database.MergeResult | The instance of Database.MergeResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(message, saveResult)
Section titled “warn(message, saveResult)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(String message, Database.SaveResult saveResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| saveResult | Database.SaveResult | The instance of Database.SaveResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(message, undeleteResult)
Section titled “warn(message, undeleteResult)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(String message, Database.UndeleteResult undeleteResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| undeleteResult | Database.UndeleteResult | The instance of Database.UndeleteResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(message, upsertResult)
Section titled “warn(message, upsertResult)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(String message, Database.UpsertResult upsertResult)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| upsertResult | Database.UpsertResult | The instance of Database.UpsertResult to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(message, deleteResults)
Section titled “warn(message, deleteResults)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(String message, List<Database.DeleteResult> deleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| deleteResults | List<Database.DeleteResult> | The list of Database.DeleteResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(message, emptyRecycleBinResults)
Section titled “warn(message, emptyRecycleBinResults)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(String message, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| emptyRecycleBinResults | List<Database.EmptyRecycleBinResult> | The instance of List<Database.EmptyRecycleBinResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(message, leadConvertResults)
Section titled “warn(message, leadConvertResults)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(String message, List<Database.LeadConvertResult> leadConvertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| leadConvertResults | List<Database.LeadConvertResult> | The instance of List<Database.LeadConvertResult> to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(message, mergeResults)
Section titled “warn(message, mergeResults)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(String message, List<Database.MergeResult> mergeResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| mergeResults | List<Database.MergeResult> | The list of Database.MergeResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(message, saveResults)
Section titled “warn(message, saveResults)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(String message, List<Database.SaveResult> saveResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| saveResults | List<Database.SaveResult> | The list of Database.SaveResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(message, undeleteResults)
Section titled “warn(message, undeleteResults)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(String message, List<Database.UndeleteResult> undeleteResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| undeleteResults | List<Database.UndeleteResult> | The list of Database.UndeleteResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(message, upsertResults)
Section titled “warn(message, upsertResults)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(String message, List<Database.UpsertResult> upsertResults)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| upsertResults | List<Database.UpsertResult> | The list of Database.UpsertResult instances to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(message, apexException)
Section titled “warn(message, apexException)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(String message, System.Exception apexException)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| apexException | System.Exception | The instance of System.Exception to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(message, recordId, apexException)
Section titled “warn(message, recordId, apexException)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(String message, Id recordId, System.Exception apexException)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| recordId | Id | The record ID of an SObject to log |
| apexException | System.Exception | The instance of System.Exception to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(message, recordId)
Section titled “warn(message, recordId)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(String message, Id recordId)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| recordId | Id | The record ID of an SObject to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(message, record, apexException)
Section titled “warn(message, record, apexException)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(String message, SObject record, System.Exception apexException)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| record | SObject | The SObject record to log |
| apexException | System.Exception | The instance of System.Exception to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(message, record)
Section titled “warn(message, record)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(String message, SObject record)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| record | SObject | The SObject record to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(message, records, apexException)
Section titled “warn(message, records, apexException)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(String message, List<SObject> records, System.Exception apexException)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The instance of LogMessage to use to set the entry's message field |
| records | List |
The list of SObject records to log |
| apexException | System.Exception | The instance of System.Exception to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(message, records)
Section titled “warn(message, records)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(String message, List<SObject> records)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
| records | List |
The list of SObject records to log |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
warn(message)
Section titled “warn(message)”Creates a new log entry with logging level == System.LoggingLevel.WARN
Signature
Section titled “Signature”global static LogEntryEventBuilder warn(String message)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| message | String | The string to use to set the entry's message field |
Return Type
Section titled “Return Type”The new entry's instance of LogEntryEventBuilder , useful for chaining methods
Classes
Section titled “Classes”QueueableSaver Class
Section titled “QueueableSaver Class”Inner class for publishing log entries via the System.Queueable interface.
Implements
System.Queueable
Methods
Section titled “Methods”execute(queueableContext)
Section titled “execute(queueableContext)”Asynchronoulsy publishes the list of LogEntryEvent__e records
Signature
Section titled “Signature”global void execute(System.QueueableContext queueableContext)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| queueableContext | System.QueueableContext | The context of the current queue, provided by the platform |
Return Type
Section titled “Return Type”void
SaveMethod Enum
Section titled “SaveMethod Enum”Enum used to control how LogEntryEvent__e records are inserted
Values
Section titled “Values”| Value | Description |
|---|---|
| EVENT_BUS | |
| QUEUEABLE | |
| REST | |
| SYNCHRONOUS_DML |