mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
21 lines
679 B
HTML
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> |