The most robust logger for Salesforce. Works with Apex, Lightning Components, Flow, Process Builder & Integrations. Designed for Salesforce admins, developers & architects.
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 a JavaScript error
message
→ String
The error's message
stack
→ String
The error's stack trace
type
→ String
The type of JavaScript error
A DTO object used to create log entries for lightning components
browserFormFactor
→ String
The form factor of the user's browser
browserLanguage
→ String
The language set in the user's browser
browserScreenResolution
→ String
The resolution of the user's device
browserUrl
→ String
The URL displayed in the user's browser
browserUserAgent
→ String
The user agent of the user's browser
browserWindowResolution
→ String
The resolution of the user's browser window
error
→ ComponentError
(Optional) A JavaScript Error to log
loggingLevel
→ String
The name of the LoggingLevel
enum value
message
→ String
The value to use as the log entry's message
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
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 Logger.IsJavaScriptConsoleLoggingEnabled__c
isEnabled
→ Boolean
Indicates if logging is enabled for the current user, based on LoggerSettings__c.IsEnabled__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