This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes Inserting Headers in log file using log4j Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "Inserting Headers in log file using log4j" Watch "Inserting Headers in log file using log4j" New topic
Author

Inserting Headers in log file using log4j

Srinath Kannan
Greenhorn

Joined: Jan 11, 2011
Posts: 14

Hi,

I have semi-colon separated values logged to a csv file using log4j. Now i wanted to write a header in first line [only once, everyday]. How this can be done?

Example
message id, file name, start time, end time, status
MSGID1000;SAMPLE.TXT;01:05:55;07:08:44;OK
MSGID1000;SAMPLE.TXT;01:05:55;07:08:44;NOK


Regards
Srinath
lydia edward
Greenhorn

Joined: Feb 02, 2011
Posts: 11
Hi,
I am sorry that I am not posting an answer to your question. But I want to know how you are implementing a csv file using log4j since that is exactly what I am trying to do. Can you please let me know with an example?

Thanks,
Lydia.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Inserting Headers in log file using log4j
 
Similar Threads
EJB30-JBOSS sample tutorial doesn't works!!
Portal Server v6.0 Initialization Problem
Inserting Header Text in Log file - Log4j
delete content of file from java
SECJ0306E: LTPA Token expiration, why? (WAS 5.1.1.4)