Skip to content

Logger

SUPPRESSWARNINGS

The core class for logging

Group Logger Engine

See LogEntryEventBuilder

See LogMessage

Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(LogMessage logMessage, Database.DeleteResult deleteResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(LogMessage logMessage, Database.EmptyRecycleBinResult emptyRecycleBinResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(LogMessage logMessage, Database.LeadConvertResult leadConvertResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(LogMessage logMessage, Database.MergeResult mergeResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(LogMessage logMessage, Database.SaveResult saveResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(LogMessage logMessage, Database.UndeleteResult undeleteResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(LogMessage logMessage, Database.UpsertResult upsertResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(LogMessage logMessage, List<Database.DeleteResult> deleteResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(LogMessage logMessage, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(LogMessage logMessage, List<Database.LeadConvertResult> leadConvertResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(LogMessage logMessage, List<Database.MergeResult> mergeResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(LogMessage logMessage, List<Database.SaveResult> saveResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(LogMessage logMessage, List<Database.UndeleteResult> undeleteResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(LogMessage logMessage, List<Database.UpsertResult> upsertResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(LogMessage logMessage, Id recordId)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(LogMessage logMessage, SObject record)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(LogMessage logMessage, List<SObject> records)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(LogMessage logMessage)
Name Type Description
logMessage LogMessage The instance of LogMessage to use to set the entry's message field

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(String message, Database.DeleteResult deleteResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(String message, Database.EmptyRecycleBinResult emptyRecycleBinResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(String message, Database.LeadConvertResult leadConvertResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(String message, Database.MergeResult mergeResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(String message, Database.SaveResult saveResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(String message, Database.UndeleteResult undeleteResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(String message, Database.UpsertResult upsertResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(String message, List<Database.DeleteResult> deleteResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(String message, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(String message, List<Database.LeadConvertResult> leadConvertResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(String message, List<Database.MergeResult> mergeResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(String message, List<Database.SaveResult> saveResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(String message, List<Database.UndeleteResult> undeleteResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(String message, List<Database.UpsertResult> upsertResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(String message, Id recordId)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(String message, SObject record)
Name Type Description
message String The string to use to set the entry's message field
record SObject The SObject record to log

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(String message, List<SObject> records)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.DEBUG

global static LogEntryEventBuilder debug(String message)
Name Type Description
message String The string to use to set the entry's message field

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


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)

global static void endScenario(String scenario)
Name Type Description
scenario String The name of the scenario to end

void


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(LogMessage logMessage, Database.DeleteResult deleteResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(LogMessage logMessage, Database.EmptyRecycleBinResult emptyRecycleBinResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(LogMessage logMessage, Database.LeadConvertResult leadConvertResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(LogMessage logMessage, Database.MergeResult mergeResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(LogMessage logMessage, Database.SaveResult saveResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(LogMessage logMessage, Database.UndeleteResult undeleteResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(LogMessage logMessage, Database.UpsertResult upsertResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(LogMessage logMessage, List<Database.DeleteResult> deleteResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(LogMessage logMessage, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(LogMessage logMessage, List<Database.LeadConvertResult> leadConvertResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(LogMessage logMessage, List<Database.MergeResult> mergeResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(LogMessage logMessage, List<Database.SaveResult> saveResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(LogMessage logMessage, List<Database.UndeleteResult> undeleteResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(LogMessage logMessage, List<Database.UpsertResult> upsertResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(LogMessage logMessage, System.Exception apexException)
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

LogEntryEventBuilder

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

global static LogEntryEventBuilder error(LogMessage logMessage, Id recordId, System.Exception apexException)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(LogMessage logMessage, Id recordId)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(LogMessage logMessage, SObject record, System.Exception apexException)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(LogMessage logMessage, SObject record)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(LogMessage logMessage, List<SObject> records, System.Exception apexException)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(LogMessage logMessage, List<SObject> records)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(LogMessage logMessage)
Name Type Description
logMessage LogMessage The instance of LogMessage to use to set the entry's message field

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(String message, Database.DeleteResult deleteResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(String message, Database.EmptyRecycleBinResult emptyRecycleBinResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(String message, Database.LeadConvertResult leadConvertResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(String message, Database.MergeResult mergeResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(String message, Database.SaveResult saveResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(String message, Database.UndeleteResult undeleteResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(String message, Database.UpsertResult upsertResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(String message, List<Database.DeleteResult> deleteResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(String message, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(String message, List<Database.LeadConvertResult> leadConvertResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(String message, List<Database.MergeResult> mergeResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(String message, List<Database.SaveResult> saveResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(String message, List<Database.UndeleteResult> undeleteResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(String message, List<Database.UpsertResult> upsertResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(String message, System.Exception apexException)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(String message, Id recordId, System.Exception apexException)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(String message, Id recordId)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(String message, SObject record, System.Exception apexException)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(String message, SObject record)
Name Type Description
message String The string to use to set the entry's message field
record SObject The SObject record to log

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(String message, List<SObject> records, System.Exception apexException)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(String message, List<SObject> records)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR

global static LogEntryEventBuilder error(String message)
Name Type Description
message String The string to use to set the entry's message field

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.ERROR , automatically saves the log, and then throws the provided exception

global static void exception(LogMessage logMessage, System.Exception apexException)
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

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

global static void exception(LogMessage logMessage, Id recordId, System.Exception apexException)
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

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

global static void exception(LogMessage logMessage, SObject record, System.Exception apexException)
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

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

global static void exception(LogMessage logMessage, List<SObject> records, System.Exception apexException)
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

void


Creates a new log entry with logging level == System.LoggingLevel.ERROR , automatically saves the log, and then throws the provided exception

global static void exception(String message, System.Exception apexException)
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

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

global static void exception(String message, Id recordId, System.Exception apexException)
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

void


Creates a new log entry with logging level == System.LoggingLevel.ERROR , automatically saves the log, and then throws the provided exception

global static void exception(String message, SObject record, System.Exception apexException)
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

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

global static void exception(String message, List<SObject> records, System.Exception apexException)
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

void


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(LogMessage logMessage, Database.DeleteResult deleteResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(LogMessage logMessage, Database.EmptyRecycleBinResult emptyRecycleBinResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(LogMessage logMessage, Database.LeadConvertResult leadConvertResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(LogMessage logMessage, Database.MergeResult mergeResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(LogMessage logMessage, Database.SaveResult saveResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(LogMessage logMessage, Database.UndeleteResult undeleteResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(LogMessage logMessage, Database.UpsertResult upsertResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(LogMessage logMessage, List<Database.DeleteResult> deleteResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(LogMessage logMessage, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(LogMessage logMessage, List<Database.LeadConvertResult> leadConvertResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(LogMessage logMessage, List<Database.MergeResult> mergeResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(LogMessage logMessage, List<Database.SaveResult> saveResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(LogMessage logMessage, List<Database.UndeleteResult> undeleteResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(LogMessage logMessage, List<Database.UpsertResult> upsertResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(LogMessage logMessage, Id recordId)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(LogMessage logMessage, SObject record)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(LogMessage logMessage, List<SObject> records)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(LogMessage logMessage)
Name Type Description
logMessage LogMessage The instance of LogMessage to use to set the entry's message field

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(String message, Database.DeleteResult deleteResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(String message, Database.EmptyRecycleBinResult emptyRecycleBinResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(String message, Database.LeadConvertResult leadConvertResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(String message, Database.MergeResult mergeResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(String message, Database.SaveResult saveResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(String message, Database.UndeleteResult undeleteResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(String message, Database.UpsertResult upsertResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(String message, List<Database.DeleteResult> deleteResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(String message, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(String message, List<Database.LeadConvertResult> leadConvertResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(String message, List<Database.MergeResult> mergeResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(String message, List<Database.SaveResult> saveResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(String message, List<Database.UndeleteResult> undeleteResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(String message, List<Database.UpsertResult> upsertResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(String message, Id recordId)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(String message, SObject record)
Name Type Description
message String The string to use to set the entry's message field
record SObject The SObject record to log

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(String message, List<SObject> records)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINE

global static LogEntryEventBuilder fine(String message)
Name Type Description
message String The string to use to set the entry's message field

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(LogMessage logMessage, Database.DeleteResult deleteResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(LogMessage logMessage, Database.EmptyRecycleBinResult emptyRecycleBinResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(LogMessage logMessage, Database.LeadConvertResult leadConvertResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(LogMessage logMessage, Database.MergeResult mergeResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(LogMessage logMessage, Database.SaveResult saveResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(LogMessage logMessage, Database.UndeleteResult undeleteResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(LogMessage logMessage, Database.UpsertResult upsertResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(LogMessage logMessage, List<Database.DeleteResult> deleteResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(LogMessage logMessage, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(LogMessage logMessage, List<Database.LeadConvertResult> leadConvertResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(LogMessage logMessage, List<Database.MergeResult> mergeResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(LogMessage logMessage, List<Database.SaveResult> saveResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(LogMessage logMessage, List<Database.UndeleteResult> undeleteResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(LogMessage logMessage, List<Database.UpsertResult> upsertResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(LogMessage logMessage, Id recordId)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(LogMessage logMessage, SObject record)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(LogMessage logMessage, List<SObject> records)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(LogMessage logMessage)
Name Type Description
logMessage LogMessage The instance of LogMessage to use to set the entry's message field

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(String message, Database.DeleteResult deleteResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(String message, Database.EmptyRecycleBinResult emptyRecycleBinResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(String message, Database.LeadConvertResult leadConvertResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(String message, Database.MergeResult mergeResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(String message, Database.SaveResult saveResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(String message, Database.UndeleteResult undeleteResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(String message, Database.UpsertResult upsertResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(String message, List<Database.DeleteResult> deleteResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(String message, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(String message, List<Database.LeadConvertResult> leadConvertResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(String message, List<Database.MergeResult> mergeResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(String message, List<Database.SaveResult> saveResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(String message, List<Database.UndeleteResult> undeleteResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(String message, List<Database.UpsertResult> upsertResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(String message, Id recordId)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(String message, SObject record)
Name Type Description
message String The string to use to set the entry's message field
record SObject The SObject record to log

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(String message, List<SObject> records)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINER

global static LogEntryEventBuilder finer(String message)
Name Type Description
message String The string to use to set the entry's message field

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(LogMessage logMessage, Database.DeleteResult deleteResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(LogMessage logMessage, Database.EmptyRecycleBinResult emptyRecycleBinResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(LogMessage logMessage, Database.LeadConvertResult leadConvertResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(LogMessage logMessage, Database.MergeResult mergeResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(LogMessage logMessage, Database.SaveResult saveResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(LogMessage logMessage, Database.UndeleteResult undeleteResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(LogMessage logMessage, Database.UpsertResult upsertResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(LogMessage logMessage, List<Database.DeleteResult> deleteResults)
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

LogEntryEventBuilder

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

global static LogEntryEventBuilder finest(LogMessage logMessage, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(LogMessage logMessage, List<Database.LeadConvertResult> leadConvertResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(LogMessage logMessage, List<Database.MergeResult> mergeResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(LogMessage logMessage, List<Database.SaveResult> saveResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(LogMessage logMessage, List<Database.UndeleteResult> undeleteResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(LogMessage logMessage, List<Database.UpsertResult> upsertResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(LogMessage logMessage, Id recordId)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(LogMessage logMessage, SObject record)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(LogMessage logMessage, List<SObject> records)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(LogMessage logMessage)
Name Type Description
logMessage LogMessage The instance of LogMessage to use to set the entry's message field

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(String message, Database.DeleteResult deleteResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(String message, Database.EmptyRecycleBinResult emptyRecycleBinResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(String message, Database.LeadConvertResult leadConvertResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(String message, Database.MergeResult mergeResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(String message, Database.SaveResult saveResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(String message, Database.UndeleteResult undeleteResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(String message, Database.UpsertResult upsertResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(String message, List<Database.DeleteResult> deleteResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(String message, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(String message, List<Database.LeadConvertResult> leadConvertResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(String message, List<Database.MergeResult> mergeResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(String message, List<Database.SaveResult> saveResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(String message, List<Database.UndeleteResult> undeleteResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(String message, List<Database.UpsertResult> upsertResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(String message, Id recordId)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(String message, SObject record)
Name Type Description
message String The string to use to set the entry's message field
record SObject The SObject record to log

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(String message, List<SObject> records)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.FINEST

global static LogEntryEventBuilder finest(String message)
Name Type Description
message String The string to use to set the entry's message field

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Discards any entries that have been generated but not yet saved

global static void flushBuffer()

void


Returns the number of entries that have been generated but not yet saved

global static Integer getBufferSize()

Integer

Integer


Returns the System.Quiddity context of the current transaction.

global static System.Quiddity getCurrentQuiddity()

System.Quiddity

System.Quiddity - The value of System.Request.getCurrent().getQuiddity()


Converts a String to an instance of LoggingLevel

global static System.LoggingLevel getLoggingLevel(String loggingLevelName)
Name Type Description
loggingLevelName String The string name of an Apex logging level

System.LoggingLevel

The matching instance of System.LoggingLevel (or a default value if a match is not found)


Returns the transaction ID value that will be used to relate the current transaction's log to a parent log

global static String getParentLogTransactionId()

String

String - The parent log's transaction ID. This must be explicitly set by calling setParentLogTransactionId(String)


Returns the default save method used when calling saveLog() - set via LoggerSettings__c or by calling setSaveMethod(SaveMethod saveMethod)

global static SaveMethod getSaveMethod()

SaveMethod

The enum value of Logger.SaveMethod to use for any calls to saveLog() in the current transaction


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

global static String getScenario()

String

The value currently set as the current transaction's scenario


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 .

global static String getTransactionId()

String

String - A UUID value generated by Nebula Logger, using System.UUID.randomUUID().toString()


Returns the logging level for the current user, based on the custom setting LoggerSettings__c

global static System.LoggingLevel getUserLoggingLevel()

System.LoggingLevel

System.LoggingLevel - The matching instance of LoggingLevel


Returns the current version number of Nebula Logger

global static String getVersionNumber()

String

The current version number, in the format v0.0.0


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

global static void ignoreOrigin(System.Type apexType)
Name Type Description
apexType System.Type The Apex type of the class to ignore

void


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(LogMessage logMessage, Database.DeleteResult deleteResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(LogMessage logMessage, Database.EmptyRecycleBinResult emptyRecycleBinResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(LogMessage logMessage, Database.LeadConvertResult leadConvertResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(LogMessage logMessage, Database.MergeResult mergeResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(LogMessage logMessage, Database.SaveResult saveResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(LogMessage logMessage, Database.UndeleteResult undeleteResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(LogMessage logMessage, Database.UpsertResult upsertResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(LogMessage logMessage, List<Database.DeleteResult> deleteResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(LogMessage logMessage, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(LogMessage logMessage, List<Database.LeadConvertResult> leadConvertResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(LogMessage logMessage, List<Database.MergeResult> mergeResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(LogMessage logMessage, List<Database.SaveResult> saveResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(LogMessage logMessage, List<Database.UndeleteResult> undeleteResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(LogMessage logMessage, List<Database.UpsertResult> upsertResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(LogMessage logMessage, Id recordId)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(LogMessage logMessage, SObject record)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(LogMessage logMessage, List<SObject> records)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(LogMessage logMessage)
Name Type Description
logMessage LogMessage The instance of LogMessage to use to set the entry's message field

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(String message, Database.DeleteResult deleteResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(String message, Database.EmptyRecycleBinResult emptyRecycleBinResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(String message, Database.LeadConvertResult leadConvertResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(String message, Database.MergeResult mergeResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(String message, Database.SaveResult saveResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(String message, Database.UndeleteResult undeleteResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(String message, Database.UpsertResult upsertResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(String message, List<Database.DeleteResult> deleteResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(String message, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(String message, List<Database.LeadConvertResult> leadConvertResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(String message, List<Database.MergeResult> mergeResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(String message, List<Database.SaveResult> saveResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(String message, List<Database.UndeleteResult> undeleteResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(String message, List<Database.UpsertResult> upsertResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(String message, Id recordId)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(String message, SObject record)
Name Type Description
message String The string to use to set the entry's message field
record SObject The SObject record to log

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(String message, List<SObject> records)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.INFO

global static LogEntryEventBuilder info(String message)
Name Type Description
message String The string to use to set the entry's message field

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Indicates if logging level 'DEBUG' is enabled for the current user, based on the custom setting LoggerSettings__c

global static Boolean isDebugEnabled()

Boolean

Boolean


Indicates if logging has been enabled for the current user, based on the custom setting LoggerSettings__c

global static Boolean isEnabled()

Boolean

Boolean


Indicates if logging for the specified logging level is enabled for the current user, based on the custom setting LoggerSettings__c

global static Boolean isEnabled(System.LoggingLevel loggingLevel)
Name Type Description
loggingLevel System.LoggingLevel - The logging level to check

Boolean

Boolean


Indicates if logging level 'ERROR' is enabled for the current user, based on the custom setting LoggerSettings__c

global static Boolean isErrorEnabled()

Boolean

Boolean


Indicates if logging level 'FINE' is enabled for the current user, based on the custom setting LoggerSettings__c

global static Boolean isFineEnabled()

Boolean

Boolean


Indicates if logging level 'FINER' is enabled for the current user, based on the custom setting LoggerSettings__c

global static Boolean isFinerEnabled()

Boolean

Boolean


Indicates if logging level 'FINEST' is enabled for the current user, based on the custom setting LoggerSettings__c

global static Boolean isFinestEnabled()

Boolean

Boolean


Indicates if logging level 'INFO' is enabled for the current user, based on the custom setting LoggerSettings__c

global static Boolean isInfoEnabled()

Boolean

Boolean


Indicates if saving has been temporarily suspended for the current transaction

global static Boolean isSavingSuspended()

Boolean

Boolean


Indicates if logging level 'WARN' is enabled for the current user, based on the custom setting LoggerSettings__c

global static Boolean isWarnEnabled()

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

global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, LogMessage logMessage, List<Database.DeleteResult> deleteResults)
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

LogEntryEventBuilder

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

global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, LogMessage logMessage, List<Database.DeleteResult> deleteResults, List<SObject> records)
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

LogEntryEventBuilder

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

global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, String message, List<Database.DeleteResult> deleteResults)
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

LogEntryEventBuilder

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

global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, String message, List<Database.DeleteResult> deleteResults, List<SObject> records)
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

LogEntryEventBuilder

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

global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, LogMessage logMessage, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)
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

LogEntryEventBuilder

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

global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, LogMessage logMessage, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults, List<SObject> records)
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

LogEntryEventBuilder

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

global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, String message, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)
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

LogEntryEventBuilder

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

global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, String message, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults, List<SObject> records)
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

LogEntryEventBuilder

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

global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, LogMessage logMessage, List<Database.LeadConvertResult> leadConvertResults)
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

LogEntryEventBuilder

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

global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, LogMessage logMessage, List<Database.LeadConvertResult> leadConvertResults, List<SObject> records)
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

LogEntryEventBuilder

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

global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, String message, List<Database.LeadConvertResult> leadConvertResults)
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

LogEntryEventBuilder

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

global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, String message, List<Database.LeadConvertResult> leadConvertResults, List<SObject> records)
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

LogEntryEventBuilder

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

global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, LogMessage logMessage, List<Database.MergeResult> mergeResults)
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

LogEntryEventBuilder

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

global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, LogMessage logMessage, List<Database.MergeResult> mergeResults, List<SObject> records)
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

LogEntryEventBuilder

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

global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, String message, List<Database.MergeResult> mergeResults)
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

LogEntryEventBuilder

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

global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, String message, List<Database.MergeResult> mergeResults, List<SObject> records)
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

LogEntryEventBuilder

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

global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, LogMessage logMessage, List<Database.SaveResult> saveResults)
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

LogEntryEventBuilder

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

global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, LogMessage logMessage, List<Database.SaveResult> saveResults, List<SObject> records)
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

LogEntryEventBuilder

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

global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, String message, List<Database.SaveResult> saveResults)
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

LogEntryEventBuilder

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

global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, String message, List<Database.SaveResult> saveResults, List<SObject> records)
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

LogEntryEventBuilder

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

global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, LogMessage logMessage, List<Database.UpsertResult> upsertResults)
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

LogEntryEventBuilder

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

global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, LogMessage logMessage, List<Database.UpsertResult> upsertResults, List<SObject> records)
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

LogEntryEventBuilder

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

global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, String message, List<Database.UpsertResult> upsertResults)
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

LogEntryEventBuilder

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

global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, String message, List<Database.UpsertResult> upsertResults, List<SObject> records)
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

LogEntryEventBuilder

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

global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, LogMessage logMessage, List<Database.UndeleteResult> undeleteResults)
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

LogEntryEventBuilder

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

global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, LogMessage logMessage, List<Database.UndeleteResult> undeleteResults, List<SObject> records)
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

LogEntryEventBuilder

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

global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, String message, List<Database.UndeleteResult> undeleteResults)
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

LogEntryEventBuilder

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

global static LogEntryEventBuilder logDatabaseErrors(System.LoggingLevel loggingLevel, String message, List<Database.UndeleteResult> undeleteResults, List<SObject> records)
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

LogEntryEventBuilder

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

global static Boolean meetsUserLoggingLevel(System.LoggingLevel logEntryLoggingLevel)
Name Type Description
logEntryLoggingLevel System.LoggingLevel the logging level to check.

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

global static LogEntryEventBuilder newEntry(System.LoggingLevel loggingLevel, LogMessage logMessage, Boolean shouldSave)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder


Adds a new instance of LogEntryEventBuilder to Logger's buffer, if it meets the user's logging level

global static LogEntryEventBuilder newEntry(System.LoggingLevel loggingLevel, LogMessage logMessage)
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

LogEntryEventBuilder

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

global static LogEntryEventBuilder newEntry(System.LoggingLevel loggingLevel, String message, Boolean shouldSave)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder


Adds a new instance of LogEntryEventBuilder to Logger's buffer, if it meets the user's logging level

global static LogEntryEventBuilder newEntry(System.LoggingLevel loggingLevel, String message)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder


Resumes saving for the current transaction, used to reverse suspendSaving(). Any calls to saveLog() are ignored until saving is resumed.

global static void resumeSaving()

void


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)

global static void saveLog()

void


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.

global static void saveLog(SaveMethod saveMethod)
Name Type Description
saveMethod SaveMethod The enum value of Logger.SaveMethod to use for this specific save action.

void


Stores additional details about the current transacation's async context

global static void setAsyncContext(Database.BatchableContext batchableContext)
Name Type Description
batchableContext Database.BatchableContext - The instance of Database.BatchableContext to track

void


Stores additional details about the current transacation's async context

global static void setAsyncContext(System.FinalizerContext finalizerContext)
Name Type Description
finalizerContext System.FinalizerContext - The instance of System.FinalizerContext to track

void


Stores additional details about the current transacation's async context

global static void setAsyncContext(System.QueueableContext queueableContext)
Name Type Description
queueableContext System.QueueableContext - The instance of System.QueueableContext to track

void


Stores additional details about the current transacation's async context

global static void setAsyncContext(System.SchedulableContext schedulableContext)
Name Type Description
schedulableContext System.SchedulableContext - The instance of System.SchedulableContext to track

void


Sets a field value on every generated LogEntryEvent__e record

global static void setField(Schema.SObjectField field, Object fieldValue)
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

void


Sets multiple field values oon every generated LogEntryEvent__e record

global static void setField(Map<Schema.SObjectField,Object> fieldToValue)
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

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.

global static void setParentLogTransactionId(String parentTransactionId)
Name Type Description
parentTransactionId String - The transaction ID of the original parent transaction

void


Sets the default save method used when calling saveLog() - any subsequent calls to saveLog() will use the specified save method

global static void setSaveMethod(SaveMethod saveMethod)
Name Type Description
saveMethod SaveMethod The enum value of Logger.SaveMethod to use for any other calls to saveLog() in the current transaction

void


SUPPRESSWARNINGS

Sets the current scenario, which can be used to identify modules or groupings of for the current transaction

global static void setScenario(String scenario)
Name Type Description
scenario String The name to use for the current transaction's scenario

void


Pauses saving for the current transaction. Any calls to saveLog() are ignored until saving is resumed.

global static void suspendSaving()

void


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(LogMessage logMessage, Database.DeleteResult deleteResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(LogMessage logMessage, Database.EmptyRecycleBinResult emptyRecycleBinResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(LogMessage logMessage, Database.LeadConvertResult leadConvertResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(LogMessage logMessage, Database.MergeResult mergeResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(LogMessage logMessage, Database.SaveResult saveResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(LogMessage logMessage, Database.UndeleteResult undeleteResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(LogMessage logMessage, Database.UpsertResult upsertResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(LogMessage logMessage, List<Database.DeleteResult> deleteResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(LogMessage logMessage, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(LogMessage logMessage, List<Database.LeadConvertResult> leadConvertResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(LogMessage logMessage, List<Database.MergeResult> mergeResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(LogMessage logMessage, List<Database.SaveResult> saveResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(LogMessage logMessage, List<Database.UndeleteResult> undeleteResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(LogMessage logMessage, List<Database.UpsertResult> upsertResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(LogMessage logMessage, System.Exception apexException)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(LogMessage logMessage, Id recordId, System.Exception apexException)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(LogMessage logMessage, Id recordId)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(LogMessage logMessage, SObject record, System.Exception apexException)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(LogMessage logMessage, SObject record)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(LogMessage logMessage, List<SObject> records, System.Exception apexException)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(LogMessage logMessage, List<SObject> records)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(LogMessage logMessage)
Name Type Description
logMessage LogMessage The instance of LogMessage to use to set the entry's message field

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(String message, Database.DeleteResult deleteResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(String message, Database.EmptyRecycleBinResult emptyRecycleBinResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(String message, Database.LeadConvertResult leadConvertResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(String message, Database.MergeResult mergeResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(String message, Database.SaveResult saveResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(String message, Database.UndeleteResult undeleteResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(String message, Database.UpsertResult upsertResult)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(String message, List<Database.DeleteResult> deleteResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(String message, List<Database.EmptyRecycleBinResult> emptyRecycleBinResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(String message, List<Database.LeadConvertResult> leadConvertResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(String message, List<Database.MergeResult> mergeResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(String message, List<Database.SaveResult> saveResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(String message, List<Database.UndeleteResult> undeleteResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(String message, List<Database.UpsertResult> upsertResults)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(String message, System.Exception apexException)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(String message, Id recordId, System.Exception apexException)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(String message, Id recordId)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(String message, SObject record, System.Exception apexException)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(String message, SObject record)
Name Type Description
message String The string to use to set the entry's message field
record SObject The SObject record to log

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(String message, List<SObject> records, System.Exception apexException)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(String message, List<SObject> records)
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

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods


Creates a new log entry with logging level == System.LoggingLevel.WARN

global static LogEntryEventBuilder warn(String message)
Name Type Description
message String The string to use to set the entry's message field

LogEntryEventBuilder

The new entry's instance of LogEntryEventBuilder , useful for chaining methods

Inner class for publishing log entries via the System.Queueable interface.

Implements

System.Queueable

Asynchronoulsy publishes the list of LogEntryEvent__e records

global void execute(System.QueueableContext queueableContext)
Name Type Description
queueableContext System.QueueableContext The context of the current queue, provided by the platform

void

Enum used to control how LogEntryEvent__e records are inserted

Value Description
EVENT_BUS
QUEUEABLE
REST
SYNCHRONOUS_DML