How to customize Logging application block

Topics: Building and extending application blocks, Logging Application Block
Dec 18, 2007 at 5:06 PM
Hi,

I want to create custom XML Log files (the xml structure is said to be user defined) by using enterprise Library 3.0 of Logging Application block.

Is it possible to create a custom XML Log file. We are migrating from Enterprise library 1.0 to 3.0. Please help me with some sample project.

Regards,
Maxim
Dec 27, 2007 at 2:41 PM
You can use a TextFormatter to generate a rather fixed Xml representation for an entry, or create your own formatter.
There is an XmlLogFormatter that generates a fixed format based on the entry properties, but strangely enough there is no configuration or design time support for it.

You mention you're migrating from EntLib 1.0. How are you dealing with this requirement now?

Fernando


maximprakash wrote:
Hi,

I want to create custom XML Log files (the xml structure is said to be user defined) by using enterprise Library 3.0 of Logging Application block.

Is it possible to create a custom XML Log file. We are migrating from Enterprise library 1.0 to 3.0. Please help me with some sample project.

Regards,
Maxim