If you are calling doConfigure in doGet of each servlet then it is
being configured multiple times -- once for each request processed.
The easiest way to configure it only once is to put the config file in
the classpath and allow it to be automatically configured. An
alternative is to call doconf
Iam sure the code is only executed once, why because without specifying any
configurator and placing log4j.xml in classes folder of the web application,
everything works fine.But when i specify configurator and remove the log4j.xml
from classes folder and place log4j.xml in different location an
Are you sure that code is only executed once per program run? Are you
running in Tomcat, and where are you calling doConfigure?
On 2/27/07, Surya Poola <[EMAIL PROTECTED]> wrote:
Iam calling jc.doconfigure only once in my program.I hope this should not be the
problem.
James Stauffer <[EMAIL
This should do what you want:
1. Switch to XML config.
2. Define your main appender and special appender
3. Use a system property for the name of the file in the special appender.
4. Make sure you have your loggers setup so logs from the special part
of your code go to the special appender.
On 2/
Thanks for your response,
it's not exactly what I want actually :
I have a main log where every log is stored,
But in a part of my code I want to log in a separate file (and still in
the main log file),
the location in which I must store the logs of this block of code
is told dynamically in my a
Iam calling jc.doconfigure only once in my program.I hope this should not be the
problem.
James Stauffer <[EMAIL PROTECTED]> wrote:
Are you calling jc.doConfigure multiple times? It should only be
called once during the program run.
On 2/27/07, Surya Poola wrote:
> Hi,
>
> When Iam usin
You could write a custom appender to grab the logs and then have your
JSP grab them from that appender.
On 2/27/07, sunil nagavaram <[EMAIL PROTECTED]> wrote:
Guys,
Did anyone try this, displaying logs generated by log4j on jsp. If so can
you please write down the steps for me
Thank you
--
Suni
Are you calling jc.doConfigure multiple times? It should only be
called once during the program run.
On 2/27/07, Surya Poola <[EMAIL PROTECTED]> wrote:
Hi,
When Iam using joran configurator in log4j1.3 alpha 8 version, log is written
in folds into log file.ie, first call of execution of my
This question interest me also,
Ok but is there any way to see the lines added in the logs in the JSP
dynamically in an easy way ?
__
Matt
-Original Message-
From: Julius Davies [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 27, 2007 4:30 PM
JSP's can do this!
InputStream in = new FileInputStream( "/path/to/my.log" ); // ;-)
(Or use a FileReader instead?)
On 2/27/07, sunil nagavaram <[EMAIL PROTECTED]> wrote:
Guys,
Did anyone try this, displaying logs generated by log4j on jsp. If so can
you please write down the steps for me
T
Guys,
Did anyone try this, displaying logs generated by log4j on jsp. If so can
you please write down the steps for me
Thank you
--
Sunil
Hi,
When Iam using joran configurator in log4j1.3 alpha 8 version, log is written
in folds into log file.ie, first call of execution of my program writes the
text once, for second call it writes twice and the logging is growing
exponentially for subsequent calls.
my code looks like
12 matches
Mail list logo