On Tue, Jun 10, 2008 at 10:41 PM, Lilianne E. Blaze <[EMAIL PROTECTED]> wrote: > Hello, > One more thing - why should "A Log Rotation Best Practice That Is Currently > Not Possible" be impossible? > > Either > 1) Implement it extending rolling file appender. Should be reasonably easy. > Disadvantage - tied to a speficic api.
Yes!!!! And now I'm waiting for your patch..... :-p > 2) Start a daemon thread which logs the required info immediately, and then > once every midnight (or whenever your logs roll). Advantage - compatible > with everything (assuming it's using JCL or similar wrapper), disadvantage - > its output will probably end up not on the top of the file, but somewhere in > 1st minute. > It's quite hard to hit every "active" log file using approach #2. Log4J might have created hundreds of active logs in parallel, all getting rotated on different frequencies. > Greetings, Lilianne > > -- yours, Julius Davies 250-592-2284 (Home) 250-893-4579 (Mobile) http://juliusdavies.ca/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
