Header/Footer Problem

Topics: Logging Application Block
May 28, 2007 at 9:23 AM
Hi All,

I am using RollingFlatFileListener for logging purpose. FlatFileListener allow to add header and footer to each entry but RollingFlatFileListener didn't even though RollingFlatFileListener is an extension of FlatFileListener.

But I need to add specific header and footer to each file instead of each entry. Please help me to where I should insert custom code either to create new custom formatter or to create new TraceListener by extending RollingFlatFileListener. I am not felling very comfortable with the design.

Best regards,
ZGulzar
May 28, 2007 at 6:23 PM
Both the FlatFileTraceListener and RollingFlatFileTraceListener allow you to add a header and footer to each log entry, but you are correct, they don't provide a way to add a header and footer to the file.

I recommend discussing this in the EntLibContrib Project which is about extending Enterprise Library.

Regards,

Dave

_________________________

David Hayden
Microsoft MVP C#
May 29, 2007 at 5:21 AM
Thanks David,

I have posted this question to EntLibContrib Project and waiting the answer.