[java] GuardLogStatement can have more detailed example #3144
Labels
an:enhancement
An improvement on existing features / rules
in:documentation
Affects the documentation
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Affects PMD Version:
6.31
Rule: GuardLogStatement
Description:
GuardLogStatement says that you should check for logLevel or do not check for logLevel but do not create String via concatenation. It would be useful to have one more example on how to avoid
if
statement and to use lazy loggingfor log4j2 or slf4j working with parameters
Exception Stacktrace:
Code Sample demonstrating the issue:
Steps to reproduce:
Please provide detailed steps for how we can reproduce the bug.
mvn clean verify
)Running PMD through: [CLI | Ant | Maven | Gradle | Designer | Other]
The text was updated successfully, but these errors were encountered: