Java
'public' method without logging
Warning
New
Last modified: 03 December 2024Reports any public methods that do not contain a logging statement. This inspection does not report simple getters and setters.
For example:
public class Crucial {
private static final Logger LOG = LoggerFactory.getLogger(Crucial.class);
public void doImportantStuff() {
// warning on this method
}
public void doOtherStuff() {
LOG.info("do other stuff");
}
}
- 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.
PublicMethodWithoutLogging
Use the table below to specify Logger class names. Public methods that do not use instance methods of the specified classes will be reported by this inspection.
Here you can find the description of settings available for the 'public' method without logging 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!
Was this page helpful?