If you want to read the log files, then look into chainsaw. You could also write the logs to two locations -- the files and to a database (for easy reading).
On 2/2/06, D.V.Dayakar Rao <[EMAIL PROTECTED]> wrote: > > Hi James, > > Thank you. > > But I want to write the logs to a normal file with a max size of 1024kb and > should continue writing to next file after the max size of the file is over > > Should restrict the number of files to a max of 20 and once all 20 files are > over then over write the files with further logging content. > > Is there any API in log4j for reading logs which are return into files? I > can write the mechanism of reading the logs from files but if there is any > API from log4j or any third party then it will be better to use as it is > urgent for my implementation. > > Regards > dayakar > > -----Original Message----- > From: James Stauffer [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 02, 2006 9:58 PM > To: Log4J Users List > Subject: Re: How to read the logs written using log4j > > You could sent the logs to a database and have your JSP read from > that. You could also write your own appender to store the logs in a > format that is good for your JSP. > > On 2/1/06, D.V.Dayakar Rao <[EMAIL PROTECTED]> wrote: > > > > Hi Sriram, > > > > Thank you. > > > > For reading the logs I will give input of start time and end time and > basing > > on that time duration I need to get the logs. As per your advice I need to > > write my own reading logic for reading the logs, instead of that is there > > any other flexibility. > > > > Regards > > Dayakar > > > > -----Original Message----- > > From: Sriram Venkatasubramanian > > [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, February 01, 2006 11:56 AM > > To: Log4J Users List > > Subject: RE: How to read the logs written using log4j > > > > 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] > > > > > > > > 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] > > > > > > > -- > James Stauffer > Are you good? Take the test at http://www.livingwaters.com/good/ > > --------------------------------------------------------------------- > 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] > > -- James Stauffer Are you good? Take the test at http://www.livingwaters.com/good/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
