Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configurable rules for log scenario logging levels #235

Closed
jongpie opened this issue Oct 25, 2021 · 0 comments · Fixed by #237
Closed

Add configurable rules for log scenario logging levels #235

jongpie opened this issue Oct 25, 2021 · 0 comments · Fixed by #237
Labels
Feature: Scenario-Based Logging Items related to Logger.setScenario(), LoggerScenarioRule__mdt, etc. Layer: Configuration Items related to the custom hierarchy setting LoggerSettings__c or any included custom metadata type Layer: Log Management Items related to the custom objects & Logger Console app Layer: Logger Engine Items related to the core logging engine Type: Enhancement New feature or request

Comments

@jongpie
Copy link
Owner

jongpie commented Oct 25, 2021

Hi @jongpie, first I want to express my thanks for this wonderful package. I discussed building something like this myself with a colleague, then he found your package and we decided that this is way more advanced than anything we could've built ourselves :-).

This 'scenario' feature is something we are really interested in, because we have a lot of different features that we wanto to be able to distinguish. However, we would also like to be able to change loglevel on a scenario basis. It's now possible (and very handy!) to change the default loglevel that is being saved on a user/profile basis, but for us it would be great if it were possible to do this on a scenario basis as well. So for instance, we have 2 sets of REST classes:

  • Set one is called 'UserManagement'
  • Set two is called 'CaseManagement'

By default, we are only logging WARN+ on our production environment, but it would be great if we could configure that for the 'UserManagement' feature/scenario, we could have INFO+ logs. That would allow for very granular configuration, where we can group code into sets of classes that we can then toggle on-demand.

I'm not entirely sure that this is a feature that's part of this PR, would it be possible to extend the use of scenarios into the custom metadata settings?

Originally posted by @jverelst in #207 (comment)

@jongpie jongpie added Layer: Configuration Items related to the custom hierarchy setting LoggerSettings__c or any included custom metadata type Layer: Log Management Items related to the custom objects & Logger Console app Layer: Logger Engine Items related to the core logging engine Type: Enhancement New feature or request labels Oct 25, 2021
jongpie added a commit that referenced this issue Oct 26, 2021
…override the user's logging level for a particular scenario
jongpie added a commit that referenced this issue Nov 10, 2021
* 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
@jongpie jongpie added the Feature: Scenario-Based Logging Items related to Logger.setScenario(), LoggerScenarioRule__mdt, etc. label May 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: Scenario-Based Logging Items related to Logger.setScenario(), LoggerScenarioRule__mdt, etc. Layer: Configuration Items related to the custom hierarchy setting LoggerSettings__c or any included custom metadata type Layer: Log Management Items related to the custom objects & Logger Console app Layer: Logger Engine Items related to the core logging engine Type: Enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant