The only ideas I have for looking in the logs is to call out to grep.

On 3/7/07, DECAFFMEYER MATHIEU <[EMAIL PROTECTED]> wrote:
Ok, I need a list of the last indexed times but that way a List is also
possible.
But if application shuts down I lose the information ...
Well if there is no simple way, I'll just keep the information in memory
like u suggested,
Thank u
__________________________________
   Matt



-----Original Message-----
From: James Stauffer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 07, 2007 5:30 PM
To: Log4J Users List
Subject: Re: Appender - number of lines

*****  This message comes from the Internet Network *****

You could have your indexing class keep two static variables with the
times of the last full and partial index.

On 3/7/07, DECAFFMEYER MATHIEU <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi,
>
> My application allows to index a web application,
> and I want to show on a jsp the last time the specified web
applciation has
> been indexed,
> like :
> 8 March 12 PM 32 - Full index
> 7 March 15 PM 46 - Partial index
> etc.
>
> So I need to get the X first lines I store.
>
> I don't know if it is a good idea to use log4j for this,
> Unfortunately there is no appender that roll the file after X lines.
>
> Thank u for any suggestions.
>
>
> __________________________________
>    Matt
>
>  ============================================
>  Internet communications are not secure and therefore Fortis Banque
> Luxembourg S.A. does not accept legal responsibility for the contents
of
> this message. The information contained in this e-mail is confidential
and
> may be legally privileged. It is intended solely for the addressee. If
you
> are not the intended recipient, any disclosure, copying, distribution
or any
> action taken or omitted to be taken in reliance on it, is prohibited
and may
> be unlawful. Nothing in the message is capable or intended to create
any
> legally binding obligations on either party and it is not intended to
> provide legal advice.
>  ============================================
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>


--
James Stauffer        http://www.geocities.com/stauffer_james/
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]



============================================
Internet communications are not secure and therefore Fortis Banque Luxembourg 
S.A. does not accept legal responsibility for the contents of this message. The 
information contained in this e-mail is confidential and may be legally 
privileged. It is intended solely for the addressee. If you are not the 
intended recipient, any disclosure, copying, distribution or any action taken 
or omitted to be taken in reliance on it, is prohibited and may be unlawful. 
Nothing in the message is capable or intended to create any legally binding 
obligations on either party and it is not intended to provide legal advice.
============================================


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
James Stauffer        http://www.geocities.com/stauffer_james/
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]

Reply via email to