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
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
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
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
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
--
Sunil
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
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
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