Skip to content

Version 4.3.0

Compare
Choose a tag to compare
@jongpie jongpie released this 28 Mar 22:35
bdd3c14

Admin & Reporting Enhancements

  • #108 Added new 'Logger Console' app and custom tab for the LogEntry__c object
  • #123 Added new 'Mass Delete' button on Log__c - users with delete permission can select 1 or more logs from a list view and delete them all at once.
    • Existing orgs using the managed package will need to manually add this button to Log__c object's list view layouts under Setup --> Object Manager --> Log__c --> Search Layouts for Salesforce Classic
  • #113 Added new reports for Log__c and LogEntry__c
  • #103 Added new fields on Log__c for the org's Release Cycle, Release Number and Release Version
    • Several of these fields are retrieved by making a callout to api.status.salesforce.com - a remote site setting for this domain is also included. The callout can also be disabled by updating the org defaults in LoggerSettings__c to set EnableStatusApiCallout__c = false
    • Existing orgs (using either the unmanaged metadata or the managed package) should review LoggerSettings__c after upgrading and enable the new Status API callout (if desired)

Log Sharing Enhancements

  • #107 Added Apex managed sharing for Log__c - logs can now be automatically shared with the user Log__c.LoggedBy__c
    • This is configurable in LoggerSettings__c - you can set the field DefaultLogShareAccessLevel__c to 'Read' (default), 'Edit' or null (disables automatic sharing)
    • Existing orgs (using either the unmanaged metadata or the managed package) should review LoggerSettings__c after upgrading and configure the new 'Default Log Share Access Level' field (if desired)
    • This only provides record-level access. In order to see the Log__c and LogEntry__c objects, you will still need to give users access using one of the included permission sets

Flow Logging Enhancements

  • #105 Added support for logging Flow fault messages. Both invocable classes, FlowLogEntry and FlowRecordLogEntry, now have an optional property, faultMessage - simply pass the fault message from Flow, and it will be logged as an exception in LogEntry__c (similar to how Apex exceptions are logged)

Apex Logging Enhancements

  • #114 New Logger overloads for logging list parameters, such as Logger.info('my message, sobjectList)
    • The JSON of the lists are stored in the existing fields LogEntry__c.DatabaseResultJson__c and LogEntry__c.RecordJson__c. 2 new fields, DatabaseResultCollectionType__c and RecordCollectionType__c can be used to indicate if a single record or list of records was logged
    • These lists are now supported:
      • List<SObject>
      • List<Database.DeleteResult>
      • List<Database.MergeResult>
      • List<Database.SaveResult>
      • List<Database.UpsertResult>
      • List<Database.UndeleteResult>

Bugfixes

  • #115 Fixed an error with logging a single instance of Database.Result when the logging level is disabled for the current user
  • #118 Fixed upsert logic for Log__c to remove code assumption that only 1 transaction ID is present within LogEntryEvent__e records

Managed Package