Files
openide/java/java-impl/resources/inspectionDescriptions/ClassWithMultipleLoggers.html
Leonid Shalupov 40795fe787 IJI-2422: community/java: move resources under resources root
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
2025-02-05 04:43:28 +00:00

21 lines
679 B
HTML

<html>
<body>
Reports classes that have multiple loggers declared.
Ensuring that every class has a single dedicated logger is an important step in providing a unified logging
implementation for an application.
<p>For example:</p>
<pre><code>
<b>public class</b> Critical {
<b>protected static final</b> Logger LOG = Logger.getLogger(Critical.class);
<b>protected static final</b> Logger myLogger = Logger.getLogger(getClass());
}
</code></pre>
<!-- tooltip end -->
<p>
Use the table below to specify Logger class names.
Classes which declare multiple fields that have the type of one of the specified classes will be reported by this inspection.
<p>
</body>
</html>