NebulaLogger

The most robust logger for Salesforce. Works with Apex, Lightning Components, Flow, Process Builder & Integrations. Designed for Salesforce admins, developers & architects.

View the Project on GitHub jongpie/NebulaLogger

FlowCollectionLogEntry class

Handles adding new log entries in Flow for a particular SObject record collection

FlowLogEntry

FlowRecordLogEntry

FlowLogger

Logger

LogEntryEventBuilder


Properties

faultMessageString

Optionally log a Flow fault error message

flowNameString

The API name of the Flow creating the log entry. Due to Salesforce limitations, this cannot be automatically determined

loggingLevelNameString

Optionally specify a logging level - the default is 'DEBUG'

messageString

The message to log

recordsList<SObject>

The records to relate to this log entry - the records' JSON is automatically added to the log entry

saveLogBoolean

Optionally choose to save any pending log entries

saveMethodNameString

Optionally choose the save method to use when 'Save Log' is true

scenarioString

Optionally specify the name to use for the current transaction's scenario

shouldThrowFaultMessageExceptionBoolean

Optionally rollback Database operations executed until Apex action was called and save the log entry.

tagsStringString

Optionally provide a comma-separated String of tags to dynamically assign to the log entry

timestampDateTime

Represents the current system time

topicsList<String>

Optionally provide a comma-separated String of tags to dynamically assign to the log entry


Methods

addFlowCollectionEntries(List<FlowCollectionLogEntry> flowCollectionLogEntries)List<String>

Invocable method for adding LogEntry records via flow or process builder

Parameters
Param Description
flowCollectionLogEntries The list of FlowRecordLogEntry instances to save
Return

Type

List<String>

Description

The current transaction's ID (based on Logger.getTransactionId())