On Feb 6, 2006, at 10:38 AM, Patrick Vedrines wrote:
hi,
It's quite convenient to use Log4j for writing 'special' log
messages into a 'Excel-like' file with
the .xls extention .
The pattern layout can contain tab delimited values in order to
build a csv file, directly
accessible via the http server with the proper mime-type
information (i.e. asking the web browser
to open automaticcaly Excel).
It works fine but it would be great if a title could persist along
the creation of each new log file
!
Would'nt it be a usefull feature to implement a new parameter, for
example "title" of the following
form :
<appender name="STAT"
class="org.apache.log4j.DailyRollingFileAppender">
<param name="File" value="/tmp/stat.xls" />
<param name="DatePattern" value="'.'yyyy-MM'.xls'" />
<param name="Title" value="aaaaa\tbbbbbbb\tcccccccc\tddddd\teeee\r" />
This title would be writen to each new log file prior to write
'normal' log messages ...
Best regards
Layout's in the log4j 1.3 branch have a header property that should
accomplish your goal.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]