Skip to content

Spring '20 Enhancements

Pre-release
Pre-release

Choose a tag to compare

@jongpie jongpie released this 20 Aug 02:37
44f8101

API Version Updated

  • Upgraded all metadata to API v48.0 (Spring '20 release)

New Methods

  • Added new methods to Logger for controlling saving
    • suspendSaving() - Temporarily disables any calls to saveLog() during the current transaction. Any log entries are still maintained in the logger's buffer
    • resumeSaving() - Re-enables saving
    • flushBuffer() - Discards any unsaved log entries in the logger's buffer
  • Added new methods to Logger for record-specific log entries
  • Added new method saveLog(Boolean saveLogViaRestApi) which uses a callout to save the logs. This can be used when callouts are being made and DML statements cannot be used due to mixed operations limits

New Classes & Triggers

  • Added LogEntryHandler class and LogEntry trigger to dynamically populate lookup fields referenced in LogEntry__c.RelatedRecordName__c

Removed Code

  • Removed 3rd party integrations (Loggly, Slack & Trello). These will be moved to a separate repository.
  • Eliminated originLocation parameter in all public methods - the private method Logger.getOriginLocation() handles automatically setting the value

Admin Enhancements

  • Added fields on Log__c for storing user & session details
  • Added formula fields on LogEntry__c to simplify showing limits used vs max