Re: How do I do to change the properties fileforlog4jintoanother directory?

2003-11-10 Thread Tuan Jean Tee
Thanks Jake. >>> [EMAIL PROTECTED] 08/Nov/2003 01:21:31 am >>> getting resources from WEB-INF is specific to a servlet application. If you need to get the config file from both places, then put your config file back into WEB-INF/classes/config. At that point, the code below will work and you

Re: How do I do to change the properties file forlog4jintoanother directory?

2003-11-06 Thread Tuan Jean Tee
Jake, Using your suggestion, I have able to make my Log4j servlet reading the correct properties in /WEB-INF/config dir. I know this is a bit out of track, but in another java bean file, I am using InputStream. Is it a way to change to use the URL just like the Log4j method which you have point

Re: How do I do to change the properties file for log4jintoanother directory?

2003-11-06 Thread Tuan Jean Tee
Jake, Thank you for your time. I have made the changes to the code as you have suggested. It compiled without problem. However, it does not seems to initiate the Log4j Tag Library. Have I missed out anything? TJ package com.log;

Re: How do I do to change the properties file for log4j intoanother directory?

2003-11-06 Thread Tuan Jean Tee
Jake, Putting the properties file under /web-inf/config is what I really wanted to achieve, but I am not be able to make it work. I uses the following to initialised the log4j package. package com.log; import org.apache.log4j.*; import javax.servlet.http.HttpServlet; import javax.servlet.

How do I do to change the properties file for log4j into another directory?

2003-11-04 Thread Tuan Jean Tee
I am using the Log Tag Library 1.0 from Jakarta Project. In the Installation document, it suggest that in order to initialize Log4j automatically, the log4j.properties file will have to be placed in /WEB-INF/classes. How could I put the log4j.properties file in /WEB-INF/classes/config director