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
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
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
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
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
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
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
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
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
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,
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
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,
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); ???
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]
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
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]
16 matches
Mail list logo