You can write a custom layout class (ApplicationLoggingLayout ) which
can convert the log as html (applog) and access the html directly .
<appender name="IFOX_INBOUND"
class="org.apache.log4j.DailyRollingFileAppender">
<param name="File"
value="${oracle.j2ee.home}/log/applog.html"/>
<param name="Append" value="true"/>
<param name="MaxFileSize" value="200KB"/>
<param name="MaxBackupIndex" value="100"/>
<layout class="ApplicationLoggingLayout">
<param name="LocationInfo" value="false"/>
</layout>
</appender>
> -----Original Message-----
> From: D.V.Dayakar Rao [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 01, 2006 11:44 AM
> To: 'Log4J Users List'
> Subject: RE: How to read the logs written using log4j
>
>
> Hi Virender,
>
> I need to read the logs and display them in a jsp file and not a
separate
> GUI. From my web application I need to write separate files for trace
and
> system logs. And the same is to be read into a jsp file and display
them
> on
> the web.
>
> Is there any way to do this functionality?
>
> Bye
> dayakar
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 01, 2006 11:35 AM
> To: Log4J Users List
> Subject: Re: How to read the logs written using log4j
>
>
>
>
>
> Hi,
>
> If you are using the XMLLayout then chainsaw tool provided with log4j
can
> be used to view the log files.
>
> Regards,
> Virender Singh,
>
>
>
>
> "D.V.Dayakar Rao"
> <[EMAIL PROTECTED]
> .com>
To
> <[email protected]>
> 02/01/2006 11:15
cc
> AM
> Mail Size: 5833
Subject
> How to read the logs written
using
> Please respond to log4j
> "Log4J Users Our
Ref
> List"
> <[EMAIL PROTECTED] Your
Ref
> ng.apache.org>
>
>
>
>
>
>
>
>
>
>
>
> Hello,
>
>
>
> Is there any process to read the logs written using log4j? I am able
to
> write the logs to a file using log4j but I didn't find any API in
log4j
> for
> reading the logs
>
>
>
> It would be great help if anyone has worked on reading the logs
written
> using log4j or any other third party tool which can read the logs
written
> using log4j
>
>
>
> Thanks in advance.
>
>
>
> Regards
>
> dayakar
>
>
>
>
>
>
> The information contained in this electronic message and any
attachments
> to
> this message are intended for the exclusive use of the addressee(s)
and
> may
> contain proprietary, confidential or privileged information. If you
are
> not
> the intended recipient, you should not disseminate, distribute or copy
> this
> e-mail. Please notify the sender immediately and destroy all copies of
> this
> message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of
viruses.
> The company accepts no liability for any damage caused by any virus
> transmitted by this email.
>
> www.wipro.com
>
>
> -----------------------------------------
> ******************************************************************
> This message originated from the Internet. Its originator may or may
> not be who they claim to be and the information contained in the
> message and any attachments may or may not be accurate.
> ******************************************************************
>
>
>
> ************************************************************
> HSBC Software Development (India) Pvt Ltd
> HSBC Center Riverside,West Avenue ,
> 25 B Kalyani Nagar Pune 411 006 INDIA
>
> Telephone: +91 20 26683000
> Fax: +91 20 26681030
> ************************************************************
>
>
> -----------------------------------------
>
***********************************************************************
> This e-mail is confidential. It may also be legally privileged.
> If you are not the addressee you may not copy, forward, disclose
> or use any part of it. If you have received this message in error,
> please delete it and all copies from your system and notify the
> sender immediately by return e-mail.
>
> Internet communications cannot be guaranteed to be timely,
> secure, error or virus-free. The sender does not accept liability
> for any errors or omissions.
>
***********************************************************************
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> The information contained in this electronic message and any
attachments
> to this message are intended for the exclusive use of the addressee(s)
and
> may contain proprietary, confidential or privileged information. If
you
> are not the intended recipient, you should not disseminate, distribute
or
> copy this e-mail. Please notify the sender immediately and destroy all
> copies of this message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of
viruses.
> The company accepts no liability for any damage caused by any virus
> transmitted by this email.
>
> www.wipro.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]