Hi everybody,
Windows 2000 JRun4 log4J1.2.6 JDK1.4.1
I am having trouble identifying Logger in
jsp:
<%@ page import="org.apache.log4j.Logger" %>
...
Logger log4 = null;
log4 = Logger.getLogger(this.getClass());
log4.debug("testing log4j");
I tried the above code, and nothing comes out. In case of JSP, I believe the name of the class that would be generated depends on a kind of application server. In that case, getLogger(MyClass.class); is not a good way to define Logger.
But how do I find the name of the class at runtime? It seems that everyone is having no problem using Log4J except me.
Thank you
Shin Hashitani