New Release v4.6.14: New 'Logger Settings' lwc/tab #255
jongpie
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
LoggerSettings__c
have been renamed in this release:AnonymousMode__c
→IsAnonymousModeEnabled__c
ApplyDataMaskRules__c
→IsDataMaskingEnabled__c
IsComponentConsoleLoggingEnabled__c
→IsJavaScriptConsoleLoggingEnabled__c
New 'Logger Settings' lwc/tab
PR #254 introduces a new lwc,
loggerSettings
, as a tab in the Logger Console app. It provides several features for managingLoggerSettings__c
records:Provides a datatable of all
LoggerSettings__c
records, along with functionality to view, create, edit and delete records. Anyone with access to the tab/lwc can see the datatable and the 'View' row action - but in order to access/use the 'New' button (create), and the 'Edit' & 'Delete' row actions, users must either have update access on theLoggerSettings__c
object(LoggerSettings__c.SObjectType.getDescribe().isUpdateable()
), or have the custom permission 'Can Modify Logger Settings' (FeatureManagement.checkPermission('CanModifyLoggerSettings')
). This is useful for orgs where people may have theLoggerAdmin
permission set, but aren't full System Admins.LoggerAdmin
permission set has access to view, create, edit, and deleteLoggerLogViewer
permission set only has access to viewLoggerLogCreator
andLoggerEndUser
permission sets do not have access to the tab/lwcProvides picklist-style inputs for fields that really should be picklists. Custom settings objects do not support several field types, including picklists - instead, text fields are used on the object, but this can lead to bad config data being entered (e.g., an admin/developer mistypes the name of a
LoggingLevel
orLogger.SaveMethod
enum value. The lwc solves this by presenting these fields as picklists, using some Apex in theLoggerSettingsController
class to generate the list of picklist options. This prevants any isssues with tpyos, and it simplifies the configuration process for admins/developersBonus unexpected feature: using this component, you can now configure
LoggerSettings__c
for the the Automated Process user. When using the standard UI for custom settings, you cannot search for/select the Automated Process user, but it apparently works just fine when the settings record is created via ApexOther LWC Changes
logEntryEventStream
, fixed some issues with unresolved Promises in jest testslogViewer
componentDocumentation Enhancements
logger.js
:Logger
andLogEntryBuilder
. JSDoc comments have also been incorporated into the GitHub Pages site will now include these docs going forward (alongside the existing Apex docs)Pipeline Enhancements
sfdx-cli
Thanks so much to @jamessimone for a ton of help on this release! 🥳
This discussion was created from the release New 'Logger Settings' lwc/tab.
Beta Was this translation helpful? Give feedback.
All reactions