Logging With Enterprise Library 5.0

Topics: Logging Application Block
Nov 25, 2012 at 1:51 PM


i would like to know if it is possible to create a combination between the rolling flat file trace listener and the XmlFormatter.

i would like to have the rolling file capabilities (create new one every day , keep a max size) and along with the XmlFormatter capabilities (xml format) to get an xml file with all the logging as elemnts (rather than just add an xml block to the txt/log file i'm writing to).

Thanks gilad

Nov 25, 2012 at 2:14 PM

There is project on the sample projects page which adds rolling capabilities to an XML trace listener.

Randy Levy
Enterprise Library support engineer

Nov 25, 2012 at 3:15 PM

Hi Rendy

thanks for the quick response.

i'm checking it now.