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 )

2 comments
Comment actions Permalink


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

0
Comment actions Permalink

Dave Griffith wrote:

there are too darn many). By default, it's set to the JDK1.4
standard logger class, rather than log4j's.


Ah sweet. goes and makes changes to his settings

0

Please sign in to leave a comment.