posted 15 years ago
I'm using DailyRollingFileAppender in log4j 1.2 to write CSV files. The first line in the CSV file contains the names of the columns and each subsequent line contains data for each column.
So I need the header logged only when a new log file is created or rolled over.
If at server startup if header information are looged to csv file,when log file is rolled over the header information are not written to csv file.
If there is any way so that the header information is written to csv file everytime when the file is rolled over.
Rgds,
Abhishek