logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amit Vaidya" <amitvai...@infy.com>
Subject Help needed : Log4J with servlets
Date Wed, 13 Jun 2001 03:15:19 GMT
Hi,
 
I'm trying to use log4J with servlets (running on weblogic)
When I try to create a category instance inside my servlet,
--------------
Category cat = Category.getInstance(NameOfTheServlet.class);
--------------
This causes internal server error. What exactly could be the problem?
I've imported the following packages in my servlet:
--------------
import org.apache.log4j.xml.DOMConfigurator;
import org.apache.log4j.Category;
import org.apache.log4j.Priority;
--------------
The java file compiles without any warnings or errors but the servlet 
during runtime gives 'Internal server error'.
 
I would really appreciate a sample code that illustrates the usage of
log4J with
servlets. 
 
Thanks & regards,
Amit

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org


Mime
View raw message