SaveMethod support in Flow & Lightning Components, RegEx filtering in logEntryEventStream component
Support for Specifying a SaveMethod in Flow Invocable Classes and Lightning Components
Logging for Flow and Lightning Components can now specify the name of an instance of Logger.SaveMethod
to use when saving. This is conceptually the same feature that Apex developers can already use by calling Logger.saveLog(SaveMethod)
-
All 3 Flow Log Entry invocable classes have a new optional property called 'Save Method' that can be used to specify the save method to use when 'Save Log' is true
-
logger.js
now accepts an optional parametersaveMethodName
when callingsaveLog()
const logger = this.template.querySelector(LOGGER_NAME); logger.info('example of logging in LWC'); logger.saveLog('QUEUEABLE'); // Supported options are: EVENT_BUS (default), QUEUEABLE, REST_API, and SYNCRONOUS_DML
-
Added a function
getUserSettings()
tologger.js
- this returns an instance ofComponentLogger.ComponentLoggerSettings
. It is conceptually similar to the Apex methodLogger.getUserSettings()
RegEx Filtering in logEntryEventStream
Component
@jamessimone made some amazing enhancements to the 'Log Entry Event Stream' tab in #251
-
Now, you can use regex for advanced criteria when filtering on
LogEntryEvent__e
records -
A filter for the new field
LogEntryEvent__e.Scenario__c
has also been included, providing yet another way to filter onLogEntryEvent__e
records
Other Changes
- All metadata has been updated to API v53.0 (Winter '22 release)