Re: log4j xml param values want to pull form database dynamically

2010-04-13 Thread Jacob Kjome
See the timely email from Maarten Bosteels with the subject "Re: log4j 1.2.15 DOMConfigurator.subst".  He provides the solution you need. Jake On Tue, 13 Apr 2010 04:51:58 -0700 (PDT) KasHarish wrote: Hi, I am new to log4j and xml, I am using log4j xml for log4j configuration now I want to

Re: RollingFileAppender not working consistently

2010-04-13 Thread Maarten Bosteels
Just re-checked our code, and it wasn't exactly behaving as described above. I said "no renaming necessary" but our log-files are renamed exactly once: a timestamp is added to the filename when rolling over. The advantage is that the name of the 'current' log-file is predictable, so you can do "t

Re: log4j 1.2.15 DOMConfigurator.subst

2010-04-13 Thread Maarten Bosteels
The problem with system properties is that they are shared by all webapps running inside the same tomcat instance. (I believe Jetty uses different sys props per webapp). http://www.mail-archive.com/log4j-user@logging.apache.org/msg10597.html Maybe someone should file a RFE. Below is the class th

Re: RollingFileAppender not working consistently

2010-04-13 Thread Curt Arnold
On Apr 13, 2010, at 2:25 AM, Mohan.Radhakrishnan wrote: > > 1. I had to copy the newer DTD from the Apache extras JAR to the log4j JAR. > 'rollingPolicy' was not recognized by the older DTD. Is this right ? rollingPolicy is in the DTD in log4j 1.2.16 which can be downloaded from http://www.apa

log4j xml param values want to pull form database dynamically

2010-04-13 Thread KasHarish
Hi, I am new to log4j and xml, I am using log4j xml for log4j configuration now I want to pull param values like maxFileSize, maxBackupIndex, File etc... from database!! Is it possible for me or not please help me out !! --- here I want size value from database

RE: RollingFileAppender not working consistently

2010-04-13 Thread Mohan.Radhakrishnan
1. I had to copy the newer DTD from the Apache extras JAR to the log4j JAR. 'rollingPolicy' was not recognized by the older DTD. Is this right ? 2. Put both JARS in the classpath. This warning is shown though. log4j:WARN Continuable parsing error 182 and column 23 log4j:WARN The content of elem