Rolling Flat File Listener Headers and Footers

Topics: Logging Application Block
Jan 24, 2011 at 10:41 AM

Hey , I have created a rolling flat file trace listener with HTML output. I need "<html><body><table>" one time in the file header and the relevant closing tags in the file footer. The text formatter has been configured to render the log entry using html <td> tags. 

unfortunately the headers and footers are rendered with every log message where as its mentioned in the MSDN documentation that the properties corresponds to file header and footer. 

Please help to resove this.

Jan 25, 2011 at 6:09 AM

As far as I know this Rolling Flat File Trace Listener Message Header/Footer property works for every log entry as what you have also observed. I'm really not sure if it is just a typo error in the documentation. Anyway it seems that the scenario you're pertaining is also not supported by the Logging App Block. If you want you can logged this in the issue tracker so that the entlib team can assess this.

Gino Terrado
Global Technologies and Solutions
Avanade, Inc.
entlib.support@avanade.com