Header Row with Rolling Flat File Trace Listener

Topics: Logging Application Block
Jun 1, 2011 at 11:26 PM

I am looking for a Fluent API call that will allow me to insert a header row in each file created by the rolling flat file trace listener. I do see a WithHeader() and a WithFooter() , but these functions apply at log entry level rather than file level. My log file will have each log entry yielding a single pipe separated row in the file. The header row is simply a list of pipe separated column names.


Jun 2, 2011 at 6:48 AM


Your question has been also asked from this thread. I'm not aware of any workaround for this except by writing a code that will directly modify the log file. Anyway, this has been already logged on the issue tracker found here. I suggest you vote for this one.


Noel Angelo Bolasoc
Global Technologies and Solutions
Avanade, Inc.