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
-
LoggerSettings__c
custom hierarchy settings, and several old custom metadata types have been consolidated into a new custom metadata typeLoggerParameter__mdt
.Custom metadata type (CMDT) optimizations
LoggerParameter__mdt
to 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__mdt
LoggerSObjectHandlerParameter__mdt
LoggerSObjectHandlerPluginParameter__mdt
LoggerSObjectHandlerPlugin__mdt
custom metadata type toLoggerPlugin__mdt
LoggerSettings__c.SystemLogMessageFormat__c
, replaced it with CMDT-drivenLoggerParameter.SYSTEM_DEBUG_MESSAGE_FORMAT
LoggerSettings__c.EnableSystemMessages__c
, replaced it with CMDT-driven constantLoggerParameter.ENABLE_LOGGER_SYSTEM_MESSAGES
LoggerParameter
- 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__mdt
custom metadata type recordsOther included changes:
LogEntryEventBuilder.setMessage()
should be called last in someLogger
static methods so that additional fields can be used when calling System.debug()SObject
andList<SObject>
List<SObject>
) where the first record was nullLogEntry__c
record 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__c
andRecordSObjectType__c
List<SObject>
). Previously, data masking was only being applied when logging a singleSObject
recordLog__c.OrganizationInstanceReleaseCycle__c
field - 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