Multiple ErrorHandlers

2009-02-26 Thread Chandresh Turakhia
Dear all : How do u configure "Multiple Error Handlers" .. I write to SocketAppender ( NewSocketappender ) but if it fails I want it to go to multiple Files based on loggers. This code does not give error while loading but does not write to fallback_* files as backup. I understand log4j schema

Re: Problem while loading the log4j.xml in to the classpath

2009-02-26 Thread kondal rao
Hi Jake, I am not using any custom DOMConfigurator class.I am running my code on the tomcat so I am using code level to set this command line variable.I am using this code in my Listener class . String cmd="java -Dlog4j.configuration=file:///C:/kondal/log4j.xml in.co.netsol.niab.porta

Re: Problem while loading the log4j.xml in to the classpath

2009-02-26 Thread Jacob Kjome
On Thu, 26 Feb 2009 21:00:48 +0530 kondal rao wrote: Thanks for your reply.I am using sample only.just a spelling mistake. I tried this (file:///C:/samplel/log4j.xml) but it is not working.Any ideas please. You just made the same spelling mistake again. Also, one critical thing I forgot to

Re: Problem while loading the log4j.xml in to the classpath

2009-02-26 Thread kondal rao
Thanks for your reply.I am using sample only.just a spelling mistake. I tried this (file:///C:/samplel/log4j.xml) but it is not working.Any ideas please. Thanks kondal On Thu, Feb 26, 2009 at 8:42 PM, Jacob Kjome wrote: > On Thu, 26 Feb 2009 14:03:43 +0530 > kondal rao wrote: > >> Hi, >> >

Re: Problem while loading the log4j.xml in to the classpath

2009-02-26 Thread Jacob Kjome
On Thu, 26 Feb 2009 14:03:43 +0530 kondal rao wrote: Hi, I am using the log4j for logging in my webapplication.I am keeping the log4j.xml file outside of my web application(generally we will keep under WEB-INF/classes).My problem is my application is not loading the log4j.xml.I am using

Re: AW: Logging issue with logginf to seperate log files

2009-02-26 Thread dirk ooms
Santhoo, I believe the problem is caused by the restart at midnight. DailyRollingFileAppender will trigger the rollover when a log event has a different date than the previous log event, but because of the restart at midnight, the first log event can't compare with a previous log event and just co

Re: AW: Logging issue with logginf to seperate log files

2009-02-26 Thread Santhoo Kumar
hai,   Joe White This is my configuration settings what is the problem just suggest me http://jakarta.apache.org/log4j/"; debug="true"> Regards, Santhoo --- On Thu, 2/26/09, Joe White wrote: From: Joe White Subject: Re: AW: Logging issue with logginf t

RE: Fallback Handlers....

2009-02-26 Thread Chandresh Turakhia
Dear all : Does Fallback Handler work with SocketAppender. It works fine if I use FileAppender as Primary appender. Question ) Which file does LogLog.debug("") gets written ??? How to run to see all these messages of log4j Chand -Original Message- From: Chandresh Turakhia Sent: We

Re: AW: Logging issue with logginf to seperate log files

2009-02-26 Thread Joe White
Do you have ? log4j.appender.file.maxBackupIndex=3 where 3 is the amount of files to keep? or ? Quoting Santhoo Kumar : Hai, i'm new to log4j, i found some xml configuration and try that stuff,  it is working fine but i have some problem with DailyRollingFileAppender it is n

Re: AW: Logging issue with logginf to seperate log files

2009-02-26 Thread Santhoo Kumar
Hai, i'm new to log4j, i found some xml configuration and try that stuff, it is working fine but i have some problem with DailyRollingFileAppender it is not keeping previous files, my system is restrat services at night 12:00 clock, on that time it overwrites the existing file for this what i

Problem while loading the log4j.xml in to the classpath

2009-02-26 Thread kondal rao
Hi, I am using the log4j for logging in my webapplication.I am keeping the log4j.xml file outside of my web application(generally we will keep under WEB-INF/classes).My problem is my application is not loading the log4j.xml.I am using the following code while my context is initializing to l