Class with multiple loggers
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.
For example:
public class Critical {
protected static final Logger LOG = Logger.getLogger(Critical.class);
protected static final Logger myLogger = Logger.getLogger(getClass());
}
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
ClassWithMultipleLoggers
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.
Here you can find the description of settings available for the Class with multiple loggers inspection, and the reference of their default values.
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Java, 243.23126 |
Thanks for your feedback!