V
vishal.changrani
Hi All,
I am running a WebApp (JSP/Servlet/Struts) on Tomcat 4.0.6
I am having a ServletContextListener which spawns a thread which runs
indifinetly.
Is there a way I can make this thread (the source code of which comes
from a seperate package) log to a different log file than the
remaining WebApp? The Webapp is NOT using log4j but is using Commons-
logging (since I dont see log4j.jar file in the lib folder but a
logger element in the Server.xml). I do intend to use log4j though.
If I do however put a log4j.properties file in my web-inf/classes
folder and the log4j in the web-ing/lib folder...all the logging of
the webapp gets written to the file i specify in the log4j.properties
file. I however only want all the classes only in that particular
package to write to that log file.
Any help will be much apreciated
Thanks in advance,
Vishal
I am running a WebApp (JSP/Servlet/Struts) on Tomcat 4.0.6
I am having a ServletContextListener which spawns a thread which runs
indifinetly.
Is there a way I can make this thread (the source code of which comes
from a seperate package) log to a different log file than the
remaining WebApp? The Webapp is NOT using log4j but is using Commons-
logging (since I dont see log4j.jar file in the lib folder but a
logger element in the Server.xml). I do intend to use log4j though.
If I do however put a log4j.properties file in my web-inf/classes
folder and the log4j in the web-ing/lib folder...all the logging of
the webapp gets written to the file i specify in the log4j.properties
file. I however only want all the classes only in that particular
package to write to that log file.
Any help will be much apreciated
Thanks in advance,
Vishal