IG: Class doe not declare a logger...
Just noticed one of the inspections coming up saying I wasn't defining a
logger, yet the code is:
public class AuthenticationFilter implements Filter {
private static final Logger LOG =
Logger.getLogger(AuthenticationFilter.class);
public void init(FilterConfig filterConfig) throws ServletException {
.....
Dave - how are you determinnig if theres a logger? ( this is a log4j
logger )
Please sign in to leave a comment.
On the inspection configuration panel, each of the logging inspections have a control to let you specify what the logger class is for your project (necessary for homebrew log libraries, of which there are too darn many). By default, it's set to the JDK1.4 standard logger class, rather than log4j's.
--Dave Griffith
Dave Griffith wrote:
Ah sweet. goes and makes changes to his settings