The most robust observability solution for Salesforce experts. Built 100% natively on the platform, and designed to work seamlessly with Apex, Lightning Components, Flow, OmniStudio, and integrations.
Controller class used by the lightning web component logger
getSettings() → ComponentLoggerSettingsProvides data to the frontend about LoggerSettings__c & server-supported logging details
Type
ComponentLoggerSettings
Description
return The instance of ComponentLoggerSettings for the current user
saveComponentLogEntries(List<ComponentLogEntry> componentLogEntries, String saveMethodName) → StringsaveComponentLogEntries Saves log entries created via lwc or aura components
| Param | Description |
|---|---|
componentLogEntries |
The list of ComponentLogEntry objects to save via Logger |
saveMethodName |
String name of the instance of Logger.SaveMethod to use when saving. |
Type
String
Description
return The transaction ID (based on Logger.getTransactionId())
A DTO object used to log details about the user's browser
address → StringThe URL displayed in the user's browser
formFactor → StringThe form factor of the user's browser
language → StringThe language set in the user's browser
screenResolution → StringThe resolution of the user's device
userAgent → StringThe user agent of the user's browser
windowResolution → StringThe resolution of the user's browser window
A DTO object used to log details about a JavaScript error
message → StringThe error's message
stack → StringDEPRECATED This property is no longer used, and will be removed in a future release. The error's stack trace string
stackTrace → ComponentStackTraceContains details about the origin of the error
type → StringThe type of JavaScript error
A DTO object used to create log entries for lightning components
browser → ComponentBrowserContextContext about the user's browser, automatically captured by Nebula Logger
error → ComponentError(Optional) A JavaScript Error to log
fieldToValue → Map<String, Object>(Optional) A map containing key-value pairs of fields to set on LogEntryEvent__e
loggingLevel → StringThe name of the LoggingLevel enum value
message → StringThe value to use as the log entry's message
originStackTrace → ComponentStackTraceContains details about the origin of the component log entry
record → SObject(Optional) The record to relate to the log entry - the record's JSON is also stored
recordId → Id(Optional) The record ID to relate to the log entry
scenario → StringOptionally specify the name to use for the current transaction's scenario
stack → StringDEPRECATED This property is no longer used, and will be removed in a future release. The JavaScript stack trace from when the log entry was created
tags → List<String>(Optional) A list of tags to associate with the log entry
timestamp → DatetimeThe datetime that the log entry was created in the lightning component
A DTO object used for passing LoggerSettings__c details to lightning components
defaultSaveMethodName → StringIndicates the save method that will be used by default if no other save method is specified, based on LoggerSettings__c.DefaultSaveMethod__c
isConsoleLoggingEnabled → BooleanIndicates if logging via the browser's console.log() is enabled for the current user, based on LoggerSettings__c.IsJavaScriptConsoleLoggingEnabled__c
isEnabled → BooleanIndicates if logging is enabled for the current user, based on LoggerSettings__c.IsEnabled__c
isLightningLoggerEnabled → BooleanIndicates if logging via the standard LWC lightning-logger is enabled for the current user, based on LoggerSettings__c.IsJavaScriptLightningLoggerEnabled__c
supportedLoggingLevels → Map<String, Integer>A map of the supported LoggingLevel enum values
userLoggingLevel → ComponentLoggingLevelThe configured LoggingLevel for the current user, based on LoggerSettings__c.LoggingLevel__c
A DTO object used for passing LoggingLevel details to lightning components
name → StringThe name of the LoggingLevel enum value
ordinal → IntegerThe ordinal of the LoggingLevel enum value
A DTO object used to log details about the origin of a JavaScript log entry
componentName → StringThe component that generated the log entry
functionName → StringThe component's function that generated the log entry
metadataType → StringThe metadata type of the component that generated the log entry Possible values are AuraDefinitionBundle and LightningComponentBundle
parsedStackTraceString → StringThe parsed stack trace used to determine the log entry origin