Added setRecord() Overload for List<Id> and Set<Id> Parameters
Thanks to @alanjaouen for working on these changes & @jamessimone for reviewing! (See PR #792)
Core Unlocked Package Changes
Added a new overload setRecord(System.Iterable<Id> recordsIds)
in LogEntryEventBuilder
to make it easy to log instances of List<Id>
and Set<Id>
. Nebula Logger automatically sets details about the logged IDs on LogEntry__c
, just as it does when calling the method overloads setRecord(SObject record)
, setRecord(List<SObject> records)
, and setRecord(Id recordId)
Example usage:
// Use List<Id>
List<Id> userIdList = new List<Id>{ System.UserInfo.getUserId() };
Logger.info('Example entry that uses List<Id>').setRecord(userIdList);
// Use Set<Id>
Set<Id> userIdSet = new Set<Id>{ System.UserInfo.getUserId() };
Logger.info('Example entry that uses Set<Id>').setRecord(userIdSet);
Installation Info
Core Unlocked Package - no namespace
Full Changelog: v4.14.17...v4.14.18
- SF CLI:
sf package install --wait 20 --security-type AdminsOnly --package 04t5Y0000015ocbQAA
- SFDX CLI:
sfdx force:package:install --wait 20 --securitytype AdminsOnly --package 04t5Y0000015ocbQAA
- Sandbox: https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000015ocbQAA
- Production: https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000015ocbQAA