Problem Statement: Generating huge DEBUG logs leading to application crash and being sent to Splunk.
Proposed Solution: I want to create Rule in SonarQube to check if DEBUG logs are enabled in my code before deploying. This rule should scan the possible application properties files and check if DEBUG logs are enabled. If debug logs are enabled, i won’t allow the application for deployment.
Please let me know if such kind of rule already exist in Sonar or how can we create this type of rule. I’m trying to implement this rule for Java application.