Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-20 Thread dirk ooms
I tried your below config file with 1.3alpha8. It works fine except for a small typo (see inline). Could it be that there is still a log4j 1.2 jar hanging around in your app? On Tuesday 16 January 2007 17:36, Surya Poola wrote: > Dirk, > I have multiple instance of webapp applications .So cu

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-20 Thread dirk ooms
Curt, > > classes of each webapp. it will then be picked up by > > JoranConfigurator (without doing anything explicit in your code, > > except for a getLogger()). Do not use the in > > version 1.3, JoranConfigurator does not accept it. > > I'm pretty sure that you are mistaken on the lack of supp

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-16 Thread Surya Poola
Dirk, I have multiple instance of webapp applications .So currently i tried by saving my log4j.xml file in WEB-INF/classes folder. The file is been picked up, but i am getting the same warnings that i got earlier without any file output( Ihave switched on the debug . mode) log4j:WARN Cont

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-16 Thread Curt Arnold
On Jan 16, 2007, at 7:32 AM, Surya Poola wrote: Hi, I hope DOM Configurator doesnot support rollingfileappender (updated in1.3), because elements like rollingpolicy are not identified by DOM Configurator.I have checked in log4j.dtd wich allows only some specific elements like (error

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-16 Thread Dirk Ooms
Rohan, do you have multiple instances of tomcat or multiple webapps within tomcat? anyway, typically one puts the log4j.xml in the WEB-INF/classes of each webapp. it will then be picked up by JoranConfigurator (without doing anything explicit in your code, except for a getLogger()). Do not use t

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-16 Thread Surya Poola
Hi, I hope DOM Configurator doesnot support rollingfileappender(updated in1.3), because elements like rollingpolicy are not identified by DOM Configurator.I have checked in log4j.dtd wich allows only some specific elements like (errorHandler?,param*,layout?,filter*,appender-ref*)".I have go

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-15 Thread Jacob Kjome
Quoting dirk ooms <[EMAIL PROTECTED]>: > On Monday 15 January 2007 19:04, Jacob Kjome wrote: > > The file should look something like this... > > > > > > http://logging.apache.org/log4j/"; > > debug="false" threshold="debug"> > > AFAIK the tag was used in version 1.2.x, but it is > inproper xml.

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-15 Thread dirk ooms
On Monday 15 January 2007 19:04, Jacob Kjome wrote: > The file should look something like this... > > > http://logging.apache.org/log4j/"; > debug="false" threshold="debug"> AFAIK the tag was used in version 1.2.x, but it is inproper xml. In 1.3 this was corrected (or at least an attempt was ma

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-15 Thread dirk ooms
> I already have gone through the document.My question is in log4j 1.2.8 i > was using the following for DailyRollingFileAppender to map to > configuration file : DOMConfigurator.configure(mLOG4JCONFIGFILE); > where mLOG4JCONFIGFILE was the property where i mentioned the location of > xml file.

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-15 Thread Jacob Kjome
The file should look something like this... http://logging.apache.org/log4j/"; debug="false" threshold="debug"> Jake Quoting Surya Poola <[EMAIL PROTECTED]>: > Hi, > Iam getting the following warnings if iam using DOM Configurator and iam > not getting the log file creat

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-15 Thread Surya Poola
Hi, Iam getting the following warnings if iam using DOM Configurator and iam not getting the log file created: log4j:WARN Continuable parsing error 2 and column 16 log4j:WARN Document root element "configuration", must match DOCTYPE root "null". log4j:WARN Continuable parsing error 2 and

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-15 Thread James Stauffer
Even though DOMConfigurator is depreciated it may still work and it may be worthwhile to try it to see if your config is ok. On 1/15/07, Surya Poola <[EMAIL PROTECTED]> wrote: Dirk, Thanks for your help,but iam sorry to query you once more: I already have gone through the document.My quest

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-15 Thread Surya Poola
Dirk, Thanks for your help,but iam sorry to query you once more: I already have gone through the document.My question is in log4j 1.2.8 i was using the following for DailyRollingFileAppender to map to configuration file : DOMConfigurator.configure(mLOG4JCONFIGFILE); where mLOG4JCONFI

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-15 Thread Dirk Ooms
Rohan, have a look at the 'Default Initalization Procedure' at http://logging.apache.org/log4j/docs/manual.html it explains how log4j will find your config file. dirk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-15 Thread Surya Poola
Hi Dirk, But how can i map to the log4j.xml file without use of joranconfigurator.I hope we need one configurator which maps to configuration file. So please let me know the procedure to map log4j.xml file which resides in specific location, or else the right usage of configurator for R

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-15 Thread Dirk Ooms
Rohan, you can use the wizard http://wizardforge.org/pc?action=showVersion&id=28 to generate a valid log4j.xml for your goal you just have to create a logegr in your code (Logger.getLogger()), no need for the JoranConfigurator stuff. dirk --

cannot write to a file with rollingfileappender in log4j1.3

2007-01-15 Thread Surya Poola
Hi, Iam new to log4j usage.My requirement is to wriite a log file and roll over monthly, but I want the file name that iam logging to be identified with date like xyz_01-2007.csv before rollover. Iam using log4j1.3 alpha-8 with rollingfileappender but file is not created and iam no