hi Log4j Dev,

I am interested in the log rollover and compression feature in log4j2. I
read the documentation online, and still have some questions.

- gzipping large files has performance impact on latencies/cpu/file cache,
and there's a workaround for that using dd and direct i/o. Is it possible
to customize how log4j2 gzips files (or does log4j2 already do this)? See
this link for a description of the common problem.
http://kevinclosson.wordpress.com/2007/02/23/standard-file-utilities-with-direct-io/

- is it possible to use the existing appenders to output directly to their
final gzipped files, maintain M of those gzipped files, and
rollover/maintain N of the uncompressed logs?  I suspect that the
complicated part would be in JVM crash recovery/ application restart. Any
suggestions on how best to add/extend/customize support for this?


Thanks,
David

Reply via email to