Spring '20 Enhancements
Pre-release
Pre-release
API Version Updated
- Upgraded all metadata to API v48.0 (Spring '20 release)
New Methods
- Added new methods to
Loggerfor controlling savingsuspendSaving()- Temporarily disables any calls tosaveLog()during the current transaction. Any log entries are still maintained in the logger's bufferresumeSaving()- Re-enables savingflushBuffer()- Discards any unsaved log entries in the logger's buffer
- Added new methods to
Loggerfor 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
LogEntryHandlerclass andLogEntrytrigger to dynamically populate lookup fields referenced inLogEntry__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__cfor storing user & session details - Added formula fields on
LogEntry__cto simplify showing limits used vs max