-
-
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.
New 'Log Scenario Rules' CMDT (#237)
* Closed #235 - Added new CMDT LogScenarioRule__mdt to override the user's logging level & retention date for a particular scenario * Fixed #247 - Removed the new Logger Admin dashboard from the core package, and instead converted it into a plugin package. @jverelst pointed out that there is an org limit on the number of dynamic dashboards, so including the dashboard can cause issues for some orgs. Making it an optional plugin avoids this issue * Updated build script so that it syncs the unlocked package version number in README.md from sfdx-project.json
- Loading branch information
Showing
32 changed files
with
386 additions
and
91 deletions.
There are no files selected for viewing
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
Binary file not shown.
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 |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
"Nebula Logger - Managed [email protected]": "04t5Y000000XJZ7QAO", | ||
"Nebula Logger - Managed [email protected]": "04t5Y000000Xg4wQAC", | ||
"Nebula Logger - Managed [email protected]": "04t5Y000000YLDLQA4", | ||
"Nebula Logger - Managed [email protected]config-default-save-method": "04t5Y0000027FFgQAM", | ||
"Nebula Logger - Managed [email protected]configurable-default-save-method": "04t5Y0000027FFgQAM", | ||
"Nebula Logger - Managed [email protected]": "04t5Y0000027FMhQAM", | ||
"Nebula Logger - Managed [email protected]": "04t5Y0000015keOQAQ" | ||
} | ||
|
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,13 @@ | ||
# Logger Admin Dashboard for Nebula Logger | ||
|
||
> :information_source: Requires Nebula Logger v4.6.12 or newer | ||
[![Install Unlocked Package Plugin](./content/btn-install-unlocked-package-plugin.png)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000015l3yQAA) | ||
|
||
To help monitor logs in your org, this plugin includes a new Logger Admin dynamic dashboard, as well as several new reports. The dashboard displays several report charts to quickly see summary info about your logs. It supports filtering on: | ||
|
||
- Timestamp: based on `LogEntry__c.Timestamp__c` | ||
- Logging Level: based on `LogEntry__c.LoggingLevel__c` | ||
- Origin Type: based on `LogEntry__c.OriginType__c` | ||
|
||
![Logger Admin Dashboard](./content/logger-admin-dashboard.png) |
Binary file added
BIN
+28.7 KB
...-plugins/Logger-Admin-Dashboard/content/btn-install-unlocked-package-plugin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+110 KB
nebula-logger-plugins/Logger-Admin-Dashboard/content/logger-admin-dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
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 |
---|---|---|
|
@@ -335,7 +335,6 @@ | |
</dashboardGridLayout> | ||
<dashboardType>LoggedInUser</dashboardType> | ||
<isGridLayout>true</isGridLayout> | ||
<runningUser>[email protected]</runningUser> | ||
<textColor>#000000</textColor> | ||
<title>Logger Admin Dashboard</title> | ||
<titleColor>#000000</titleColor> | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
97 changes: 97 additions & 0 deletions
97
.../main/configuration/layouts/LogScenarioRule__mdt-Log 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,97 @@ | ||
<?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> | ||
</layoutColumns> | ||
<style>TwoColumnsTopToBottom</style> | ||
</layoutSections> | ||
<layoutSections> | ||
<customLabel>true</customLabel> | ||
<detailHeading>true</detailHeading> | ||
<editHeading>true</editHeading> | ||
<label>Rule Details</label> | ||
<layoutColumns> | ||
<layoutItems> | ||
<behavior>Required</behavior> | ||
<field>Scenario__c</field> | ||
</layoutItems> | ||
</layoutColumns> | ||
<layoutColumns> | ||
<layoutItems> | ||
<behavior>Required</behavior> | ||
<field>UserLoggingLevel__c</field> | ||
</layoutItems> | ||
<layoutItems> | ||
<behavior>Edit</behavior> | ||
<field>NumberOfDaysToRetainLogs__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
...gger/main/configuration/objects/LogScenarioRule__mdt/LogScenarioRule__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>Log Scenario Rule</label> | ||
<pluralLabel>Log Scenario Rules</pluralLabel> | ||
<visibility>Public</visibility> | ||
</CustomObject> |
9 changes: 9 additions & 0 deletions
9
...logger/main/configuration/objects/LogScenarioRule__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> |
14 changes: 14 additions & 0 deletions
14
...figuration/objects/LogScenarioRule__mdt/fields/NumberOfDaysToRetainLogs__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,14 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>NumberOfDaysToRetainLogs__c</fullName> | ||
<externalId>false</externalId> | ||
<fieldManageability>SubscriberControlled</fieldManageability> | ||
<inlineHelpText | ||
>This value is used to set the field Log__c.LogRetentionDate__c, which is then used by LogBatchPurger to delete old logs. To keep logs indefinitely, set this field to blank (null).</inlineHelpText> | ||
<label>Days to Retain Logs</label> | ||
<precision>4</precision> | ||
<required>false</required> | ||
<scale>0</scale> | ||
<type>Number</type> | ||
<unique>false</unique> | ||
</CustomField> |
12 changes: 12 additions & 0 deletions
12
...-logger/main/configuration/objects/LogScenarioRule__mdt/fields/Scenario__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,12 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>Scenario__c</fullName> | ||
<caseSensitive>false</caseSensitive> | ||
<externalId>false</externalId> | ||
<fieldManageability>SubscriberControlled</fieldManageability> | ||
<label>Scenario</label> | ||
<length>255</length> | ||
<required>true</required> | ||
<type>Text</type> | ||
<unique>true</unique> | ||
</CustomField> |
52 changes: 52 additions & 0 deletions
52
...main/configuration/objects/LogScenarioRule__mdt/fields/UserLoggingLevel__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,52 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>UserLoggingLevel__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</label> | ||
<required>true</required> | ||
<type>Picklist</type> | ||
<valueSet> | ||
<restricted>true</restricted> | ||
<valueSetDefinition> | ||
<sorted>false</sorted> | ||
<value> | ||
<fullName>ERROR</fullName> | ||
<default>false</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> |
12 changes: 12 additions & 0 deletions
12
...la-logger/main/configuration/objects/LogScenarioRule__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,12 @@ | ||
<?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>Scenario__c</columns> | ||
<columns>UserLoggingLevel__c</columns> | ||
<columns>NumberOfDaysToRetainLogs__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
Oops, something went wrong.