Re: A org.apache.log4j.DailyRollingFileAppender object is not assignable to...

2002-07-15 Thread Whtiney J. White
Martin, init() is called once and only once during the lifetime of a servlet. But servlets have many lives. The lifetime of a servlet begins when it's instantiated and ends when its garbage callected by the servlet runner (either due to disuse, or for dynamic servlet reloading, or because

Re: Log4J DTD error

2002-07-15 Thread Ceki Gülcü
Sudhir, I have just tested log4j with Xerces 2.0.2 without any problems. Your config file looks fine.Can you create a test case reproducing the problem? (The smaller the better.) Thank you. At 09:55 15.07.2002 +0530, you wrote: Hi Everybody, I have a web application

Re: Log4J DTD error

2002-07-15 Thread Sudhir S. Shetty
Hi Ceki, I am invoking the Logging from a JSP Page , I am attaching it alongwith this mail(SampleInputTest.jsp). I also wanted to know , how do i get the path for the configuration file within tomcat , in case i want to invoke the logger from a Java class deployed within tomcat

Log4J DTD error

2002-07-15 Thread Sudhir S. Shetty
Hi Ceki, I am invoking the Logging from a JSP Page , I am attaching it alongwith this mail(SampleInputTest.jsp) in the attached testcase.zip. I also wanted to know , how do i get the path for the configuration file within tomcat , in case i want to invoke the logger from a

Re: A org.apache.log4j.DailyRollingFileAppender object is not assignable to...

2002-07-15 Thread Whitney White
Not that I doubted you... but you're absolutely right. Switching to log4j-1.2.1.jar fixed my problem; my servlets are now able to reinitialize the root logger when they're dynamically reloaded by Jrun. But does this mean that Jrun is incompatible with the later versions of log4j? I'm

Re: A org.apache.log4j.DailyRollingFileAppender object is not assignable to...

2002-07-15 Thread Ceki Gülcü
Whitney, To convince yourself that the error is linked to having two distinct copies of log4j classes present in memory each of which is accessible by a different class loader, as well as the TCL settings as desribed in an earlier mail, you can use log4j 1.2.1 which does not use the TCL. Log4j

RE: Specifying exclusive log file for one category

2002-07-15 Thread kirusshna
Hi ravi, Try this change in the properties and in the java file also. log4j.logger.Log1=DEBUG,Log1 log4j.logger.Log2=DEBUG,Log2 log4j.logger=Log1 log4j.logger=Log2 log4j.appender.Log1=org.apache.log4j.DailyRollingFileAppender log4j.appender.Log1.layout=org.apache.log4j.HTMLLayout

Migrating from Log4J to JDK 1.4 Logging

2002-07-15 Thread Lyons, Dave
The company I am working at has decided to standardize on JDK logging instead of Log4J (we use Log4J now but will go with the standard). I need to create a very lightweight transition wrapper for new apps to be developed so a Log4J migration to JDK logging is easy (we are using BEA WebLogic and

NullAppender questions

2002-07-15 Thread Klein, Scott @ TW
I've been using the org.apache.log4j.varia.NullAppender and there is a minor issue - the documentation suggests using the getInstance() method to retrieve an instance of the class, which is fine except that the method is not static Also, when I do a CVS update, I can't find the

RE: NullAppender questions

2002-07-15 Thread Mark Womack
On a similar topic, what is the proper way to turn logging 'off' without modifying/removing entire configurations (and/or changing code)? LogManager.getLoggerRepository().setThreshold(Level.OFF); ??? -Mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands,

How to run lf5 from ant?

2002-07-15 Thread EPugh
Hi all, I am trying to get LF5 to run from an ant task.. I took out the log4j from my classpath, and want to reference directly the right jars: target name=lf5 java classname=org.apache.log4j.net.SimpleSocketServer fork=false

Order by thread number in log file

2002-07-15 Thread Vullanki, Srividya
Hi All, Is there any way that we can order the log information according to the thread number. for instance when running in a servlet engine, I would like to view all the log messages of thread one at first and then all the messages thread two and so on. Thanks Srividya -- To unsubscribe,

RE: NullAppender questions

2002-07-15 Thread Ceki Gülcü
Equivalently, log4j.debug=OFF in a config file. At 11:29 15.07.2002 -0700, you wrote: On a similar topic, what is the proper way to turn logging 'off' without modifying/removing entire configurations (and/or changing code)? LogManager.getLoggerRepository().setThreshold(Level.OFF); ???

Usage of NDC

2002-07-15 Thread Vullanki, Srividya
Hi , Can I have the sample code of how to use NDC to align thread info according to thread number using servlets. I appreciate any response. Thanks in advance. Srividya -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: A org.apache.log4j.DailyRollingFileAppender object is not assignable to...

2002-07-15 Thread Ceki Gülcü
At 11:06 15.07.2002 -0400, Whitney White wrote: Not that I doubted you... but you're absolutely right. Switching to log4j-1.2.1.jar fixed my problem; my servlets are now able to reinitialize the root logger when they're dynamically reloaded by Jrun. Good. Thanks for letting us know. But

LOG4J Dtd

2002-07-15 Thread Sudhir S. Shetty
Hi Ceki, I still receive the erroe with regards to the log4j.dtd? I have mailed you a zip file containing the test cases . regards, Sudhir -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]