Can log4j interfere with writing a file?

2005-10-21 Thread Hartin, Brian
Hello all, We have some code which writes data to a file and logs a few messages while doing it, and the log messages are showing up in the *data* file instead of the *log* file. Has anyone ever seen this? It smells like file handle reuse. Here is the code: //Set up logger static Logger logger

RE: Log4j not working

2005-10-21 Thread Rakesh Patel
Hi All, Everythings almost working! Just the SMTPAppender is throwing an error: [#|2005-10-21T18:07:01.375+0100|WARNING|sun-appserver-pe8.1_01|javax.ent erprise.system.stream.err|_ThreadID=28;| log4j:ERROR Could not create an Appender. Reported error follows.|#] [#|2005-10-21T18:07:01.390+0100|W

RE: Log4j not working

2005-10-21 Thread Rakesh Patel
Thanks for that information Jake. I checked the Sun docs and yes, it does load parent first. I decided to reinstall the app server (I've been having issues for a while now with memeory consumption since adding web service utilities) and found that there is no bundled log4j.jar. This means I must ha

Re: Log4j not working

2005-10-21 Thread Jacob Kjome
It all makes complete sense if the Sun appserver is using parent first classloading. It is easy to work with Log4j in Tomcat for app-specific logging because Tomcat implements child-first classloading. The server gets its version of Log4j in the server classpath and the the app gets its version

RE: Log4j not working

2005-10-21 Thread Rakesh Patel
Hi guys, Here's an update as I've been playing around with it for a while Have moved to xml file configuration and now it gets picked up and used from WEB-INF/classes. The log4j.jar in the application server is quite old (I tried to use it for compilation but it failed. I think its that cate

Re: Log4j not working

2005-10-21 Thread James Stauffer
If both your app server and application use log4j with different configs I am not sure how to set it up. If you want to use the same config file for both then move the config and jar to one common place (on Tomcat that is common/classes/log4j.properties and common/lib/log4j.jar). What happens if

Leaky Bucket on SMTPAppender

2005-10-21 Thread Andrés González
Hi. Has anyone implemented this (leaky bucket) to limit the maximum rate of mails log4j is going to send? How? Evaluator? Any details or reference will be appreciated. Thamks -- -=-=-=-=-=-=-=-=-=-=-=-=- Andrés González. - T

RE: Log4j not working

2005-10-21 Thread Rakesh Patel
Bizarre...I started the thread "Log4j not working" but Damodar(or dyemme) seems to have answered for me but he's using Tomcat. So James, in answer to your question to me, log4j is in C:\Projects\PBTV\war\WEB-INF\lib\log4j-1.2.9.jar along with my app-specific jars. There is also one in the app serv