Thanks Kevin. It now makes a whole lot of sense.

-----Original Message-----
From: Kevin Steppe [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 16, 2002 1:37 PM
To: Log4J Users List
Subject: Re: DailyRollingFileAppender - computeCheckPeriod


The result depends on how variable 'sdf' formats the dates involved.
Basically
it converts the requested date format into a timing interval for determining
when to do roll overs.  I agree however, that it is remarkably unclear and
roundabout in doing this, but if you specify a different format it will
return
a different result.  The key is really in
!sdf.format(epoch).equals(sdf.format(next)).

Kevin


Anshul Chhabra wrote:

> Hi
>         If anybody is familiar with the code of DailyRollingFileAppender,
> what is the method computeCheckPeriod supposed to accomplish. Looks to me
> like this method has a fixed result always and looks like a very
roundabout
> way to achieve that result. It looks like the checkPeriod (or the type) -
> will always be TOP_OF_DAY. If I am missing something, could somebody
> enlighten me about it.
>
> Thanks
> Anshul


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

Reply via email to