-
-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial changes for #235 - Added new CMDT LoggerScenarioRule__mdt to …
…override the user's logging level for a particular scenario
- Loading branch information
Showing
8 changed files
with
216 additions
and
1 deletion.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
extra-tests/main/default/customMetadata/LoggerScenarioRule.some_scenario.md-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<CustomMetadata xmlns="http://soap.sforce.com/2006/04/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | ||
<label>some scenario</label> | ||
<protected>false</protected> | ||
<values> | ||
<field>UserLoggingLevelOverride__c</field> | ||
<value xsi:type="xsd:string">INFO</value> | ||
</values> | ||
</CustomMetadata> |
78 changes: 78 additions & 0 deletions
78
...configuration/layouts/LoggerScenarioRule__mdt-Logger Scenario Rule Layout.layout-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Layout xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<layoutSections> | ||
<customLabel>false</customLabel> | ||
<detailHeading>true</detailHeading> | ||
<editHeading>true</editHeading> | ||
<label>Information</label> | ||
<layoutColumns> | ||
<layoutItems> | ||
<behavior>Required</behavior> | ||
<field>MasterLabel</field> | ||
</layoutItems> | ||
<layoutItems> | ||
<behavior>Required</behavior> | ||
<field>DeveloperName</field> | ||
</layoutItems> | ||
</layoutColumns> | ||
<layoutColumns> | ||
<layoutItems> | ||
<behavior>Edit</behavior> | ||
<field>IsEnabled__c</field> | ||
</layoutItems> | ||
<layoutItems> | ||
<behavior>Required</behavior> | ||
<field>UserLoggingLevelOverride__c</field> | ||
</layoutItems> | ||
</layoutColumns> | ||
<style>TwoColumnsTopToBottom</style> | ||
</layoutSections> | ||
<layoutSections> | ||
<customLabel>false</customLabel> | ||
<detailHeading>true</detailHeading> | ||
<editHeading>true</editHeading> | ||
<label>System Information</label> | ||
<layoutColumns> | ||
<layoutItems> | ||
<behavior>Required</behavior> | ||
<field>NamespacePrefix</field> | ||
</layoutItems> | ||
<layoutItems> | ||
<behavior>Readonly</behavior> | ||
<field>CreatedById</field> | ||
</layoutItems> | ||
</layoutColumns> | ||
<layoutColumns> | ||
<layoutItems> | ||
<behavior>Edit</behavior> | ||
<field>IsProtected</field> | ||
</layoutItems> | ||
<layoutItems> | ||
<behavior>Readonly</behavior> | ||
<field>LastModifiedById</field> | ||
</layoutItems> | ||
</layoutColumns> | ||
<style>TwoColumnsTopToBottom</style> | ||
</layoutSections> | ||
<layoutSections> | ||
<customLabel>true</customLabel> | ||
<detailHeading>true</detailHeading> | ||
<editHeading>false</editHeading> | ||
<label>Custom Links</label> | ||
<layoutColumns/> | ||
<layoutColumns/> | ||
<layoutColumns/> | ||
<style>CustomLinks</style> | ||
</layoutSections> | ||
<showEmailCheckbox>false</showEmailCheckbox> | ||
<showHighlightsPanel>false</showHighlightsPanel> | ||
<showInteractionLogPanel>false</showInteractionLogPanel> | ||
<showRunAssignmentRulesCheckbox>false</showRunAssignmentRulesCheckbox> | ||
<showSubmitAndAttachButton>false</showSubmitAndAttachButton> | ||
<summaryLayout> | ||
<masterLabel>00h17000007yeDt</masterLabel> | ||
<sizeX>4</sizeX> | ||
<sizeY>0</sizeY> | ||
<summaryLayoutStyle>Default</summaryLayoutStyle> | ||
</summaryLayout> | ||
</Layout> |
6 changes: 6 additions & 0 deletions
6
...ain/configuration/objects/LoggerScenarioRule__mdt/LoggerScenarioRule__mdt.object-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<label>Logger Scenario Rule</label> | ||
<pluralLabel>Logger Scenario Rules</pluralLabel> | ||
<visibility>Public</visibility> | ||
</CustomObject> |
9 changes: 9 additions & 0 deletions
9
...ger/main/configuration/objects/LoggerScenarioRule__mdt/fields/IsEnabled__c.field-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>IsEnabled__c</fullName> | ||
<defaultValue>true</defaultValue> | ||
<externalId>false</externalId> | ||
<fieldManageability>SubscriberControlled</fieldManageability> | ||
<label>Is Enabled</label> | ||
<type>Checkbox</type> | ||
</CustomField> |
51 changes: 51 additions & 0 deletions
51
...uration/objects/LoggerScenarioRule__mdt/fields/UserLoggingLevelOverride__c.field-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>UserLoggingLevelOverride__c</fullName> | ||
<externalId>false</externalId> | ||
<fieldManageability>SubscriberControlled</fieldManageability> | ||
<inlineHelpText>Overrides the user's logging level (normally controlled via LoggerSettings__c.LoggingLevel__c) for any transactions with the specified Scenario</inlineHelpText> | ||
<label>User Logging Level Override</label> | ||
<required>true</required> | ||
<type>Picklist</type> | ||
<valueSet> | ||
<restricted>true</restricted> | ||
<valueSetDefinition> | ||
<sorted>false</sorted> | ||
<value> | ||
<fullName>ERROR</fullName> | ||
<default>true</default> | ||
<label>ERROR</label> | ||
</value> | ||
<value> | ||
<fullName>WARN</fullName> | ||
<default>false</default> | ||
<label>WARN</label> | ||
</value> | ||
<value> | ||
<fullName>INFO</fullName> | ||
<default>false</default> | ||
<label>INFO</label> | ||
</value> | ||
<value> | ||
<fullName>DEBUG</fullName> | ||
<default>false</default> | ||
<label>DEBUG</label> | ||
</value> | ||
<value> | ||
<fullName>FINE</fullName> | ||
<default>false</default> | ||
<label>FINE</label> | ||
</value> | ||
<value> | ||
<fullName>FINER</fullName> | ||
<default>false</default> | ||
<label>FINER</label> | ||
</value> | ||
<value> | ||
<fullName>FINEST</fullName> | ||
<default>false</default> | ||
<label>FINEST</label> | ||
</value> | ||
</valueSetDefinition> | ||
</valueSet> | ||
</CustomField> |
10 changes: 10 additions & 0 deletions
10
...logger/main/configuration/objects/LoggerScenarioRule__mdt/listViews/All.listView-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ListView xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>All</fullName> | ||
<columns>MasterLabel</columns> | ||
<columns>DeveloperName</columns> | ||
<columns>IsEnabled__c</columns> | ||
<columns>UserLoggingLevelOverride__c</columns> | ||
<filterScope>Everything</filterScope> | ||
<label>All</label> | ||
</ListView> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters