I'm glad somebody else is using logfile rotation - it's off by default, correct?
On Wed, Oct 01, 2003 at 05:59:17PM -0400, Dan Merillat wrote:
> The whole file naming section in support/FileLoggerHook.java needs a
> re-think.
>
> protected String getHourLogName(Calendar c) {
> return baseFilename + "-" + c.get(c.YEAR) + "-" + pad2(c.get(c.MONTH + 1)) +
> "-" + pad2(c.get(c.DAY_OF_MONTH)) + "-" + pad2(c.get(c.HOUR_OF_DAY)) +
> (INTERVAL == c.MINUTE ? ("-" + pad2(c.get(c.MINUTE))) : "");
> }
>
> Note the +1 I added. It's currently 2003-09-01 here, according to the freenet
> logs. It's also not-customary to display down to the hour when you're
> rotating monthly.
>
> It's one of those warts: not really bad, but ugly and should be fixed.
> I'll see about reflowing it once I've got some free time if nobody else
> hits it. It's a fairly trivial bit of code.
>
> --Dan
> _______________________________________________
> Devl mailing list
> [EMAIL PROTECTED]
> http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/devl
--
Matthew J Toseland - [EMAIL PROTECTED]
Freenet Project Official Codemonkey - http://freenetproject.org/
ICTHUS - Nothing is impossible. Our Boss says so.
signature.asc
Description: Digital signature
_______________________________________________ Devl mailing list [EMAIL PROTECTED] http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/devl
