summaryrefslogtreecommitdiff
path: root/plugins/InspectionGadgets/src/inspectionDescriptions/LoggingConditionDisagreesWithLogStatement.html
blob: fa394dc4f1a31b9355824aa24981ac9956eeda84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<html>
<body>
Reports <em>is log enabled for</em> conditions of if statements which
do not match the log level of the contained log statement.
<p>
For example:
<code><pre>
<b>if</b> (logger.isTraceEnabled()) {
    logger.debug("some log message");
}
</pre></code>
<p>This inspection understands the <i>java.util</i>, <i>log4j</i>, <i>commons-logging</i> and <i>slf4j</i> logging frameworks.
<!-- tooltip end -->
<p>
<small>Powered by InspectionGadgets</small>
</body>
</html>