tags:

views:

10

answers:

0

Hi,

I'm using log4j as my logging system. In addition, I'm using it as a usefull mechanism to save output into files that supports automatic file rolling based on time or size. For that purpose it would have been very usefull, if there was a way to configure log4j rolling appenders (RollingFileAppender and DailyRollingFileAppender) to automatically add a first and last line to each file.

Is there such configuration option

(I have 2 such output file types: 1. a performance log that is transfered into a cvs file to be used by excel or imported into some DB - in such case I would like an automatic addition of first line continig the colums / fields headlines. 2. an XML output file: in that case I would like an outomatic addition of the document-type tag, and the root opening and closing tag)

Thanks!

Moran Lustig