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()
→ ComponentLoggerSettings
Provides 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)
→ String
saveComponentLogEntries 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
→ String
The URL displayed in the user's browser
formFactor
→ String
The form factor of the user's browser
language
→ String
The language set in the user's browser
screenResolution
→ String
The resolution of the user's device
userAgent
→ String
The user agent of the user's browser
windowResolution
→ String
The resolution of the user's browser window
A DTO object used to log details about a JavaScript error
message
→ String
The error's message
stack
→ String
DEPRECATED
This property is no longer used, and will be removed in a future release. The error's stack trace string
stackTrace
→ ComponentStackTrace
Contains details about the origin of the error
type
→ String
The type of JavaScript error
A DTO object used to create log entries for lightning components
browser
→ ComponentBrowserContext
Context 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
→ String
The name of the LoggingLevel
enum value
message
→ String
The value to use as the log entry's message
originStackTrace
→ ComponentStackTrace
Contains 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
→ String
Optionally specify the name to use for the current transaction's scenario
stack
→ String
DEPRECATED
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
→ Datetime
The datetime that the log entry was created in the lightning component
A DTO object used for passing LoggerSettings__c
details to lightning components
defaultSaveMethodName
→ String
Indicates the save method that will be used by default if no other save method is specified, based on LoggerSettings__c.DefaultSaveMethod__c
isConsoleLoggingEnabled
→ Boolean
Indicates if logging via the browser's console.log()
is enabled for the current user, based on LoggerSettings__c.IsJavaScriptConsoleLoggingEnabled__c
isEnabled
→ Boolean
Indicates if logging is enabled for the current user, based on LoggerSettings__c.IsEnabled__c
isLightningLoggerEnabled
→ Boolean
Indicates 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
→ ComponentLoggingLevel
The configured LoggingLevel
for the current user, based on LoggerSettings__c.LoggingLevel__c
A DTO object used for passing LoggingLevel
details to lightning components
name
→ String
The name of the LoggingLevel
enum value
ordinal
→ Integer
The ordinal of the LoggingLevel
enum value
A DTO object used to log details about the origin of a JavaScript log entry
componentName
→ String
The component that generated the log entry
functionName
→ String
The component's function that generated the log entry
metadataType
→ String
The metadata type of the component that generated the log entry Possible values are AuraDefinitionBundle
and LightningComponentBundle
parsedStackTraceString
→ String
The parsed stack trace used to determine the log entry origin