New Release v4.6.9: Custom metadata type optimizations #216
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
LoggerSettings__ccustom hierarchy settings, and several old custom metadata types have been consolidated into a new custom metadata typeLoggerParameter__mdt.Custom metadata type (CMDT) optimizations
LoggerParameter__mdtto consolidate/replace several old custom metadata types. This new CMDT uses key-value pair approach for any system-wide configurations, and can be used by plugins for storing any plugin-specific configurations. These old custom metadata types will no longer be used going forwardLoggerSObjectHandler__mdtLoggerSObjectHandlerParameter__mdtLoggerSObjectHandlerPluginParameter__mdtLoggerSObjectHandlerPlugin__mdtcustom metadata type toLoggerPlugin__mdtLoggerSettings__c.SystemLogMessageFormat__c, replaced it with CMDT-drivenLoggerParameter.SYSTEM_DEBUG_MESSAGE_FORMATLoggerSettings__c.EnableSystemMessages__c, replaced it with CMDT-driven constantLoggerParameter.ENABLE_LOGGER_SYSTEM_MESSAGESLoggerParameter- all data type-based methods now require a defaultValue to be passed. This ensures that everything still works, even if the corresponding CMDT is missing/deleted in an org.The old, deprecated custom metadata types
The new
LoggerParameter__mdtcustom metadata type recordsOther included changes:
LogEntryEventBuilder.setMessage()should be called last in someLoggerstatic methods so that additional fields can be used when calling System.debug()SObjectandList<SObject>List<SObject>) where the first record was nullLogEntry__crecord that you had even tried to log a record/record collection. Now, it will log the word "null" in the fieldRecordJson__c, and "Unknown" in the fieldsRecordSObjectClassification__candRecordSObjectType__cList<SObject>). Previously, data masking was only being applied when logging a singleSObjectrecordLog__c.OrganizationInstanceReleaseCycle__cfield - since there's no automatic way to determine it, it requires updates every release, and it doesn't seem worth maintaining it at this timeMany thanks to @arbokrad, @vr8hub, @dancinllama, and @jamessimone for all of the amazing help this release!! 🥳
This discussion was created from the release Custom metadata type optimizations.
Beta Was this translation helpful? Give feedback.
All reactions