Skip to content

Support managing logger scenario rules via a custom object or setting #940

@jongpie

Description

@jongpie

Currently, logger scenarios can be used both for tracking, but also to control Nebula Logger's behavior (e.g., for certain scenarios, increase the logging level, etc.). This can give a lot of control in complex orgs/teams where only certain parts of the codebase may want to have increased logging (or other settings overrides).

However, this is all managed through the custom metadata typeLoggerScenarioRule__mdt - this makes it very easy to add the rules to source control & deployments, but limits teams who aren't actual admins in an org (and thus, don't have access to modify custom metadata records). In these situations, teams have to either coordinate with an actual admin in the org, or run a full deployment, just to change a scenario rule.

Either in addition to, or instead of (?), the existing LoggerScenarioRule__mdt, there should also be a custom object (or maaaybe a custom setting) that users with the LoggerAdmin permission set can manage.

  • This would come at the expense of more SOQL queries needed to query the custom object (as well as some data storage), but the overall benefits may be worth it.
  • Platform cache could be used to help minimize the impact of queries, though not all orgs have platform cache allocation for Nebula Logger to use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature: Data MaskingFeature: Log RetentionItems related to LogBatchPurger or LogBatchPurgeSchedulerFeature: Scenario-Based LoggingItems related to Logger.setScenario(), LoggerScenarioRule__mdt, etc.Layer: ConfigurationItems related to the custom hierarchy setting LoggerSettings__c or any included custom metadata typeLayer: Log ManagementItems related to the custom objects & Logger Console appLayer: Logger EngineItems related to the core logging engineSalesforce Feature: Platform CacheItems related to how platform cache is leveraged by Nebula LoggerSalesforce Feature: SecurityItems related to the security model (object-level access, field-level security, record sharing)Type: EnhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions