WCF Exception Shielding With Logging Exception Handler

Description

This solution contains a sample of using WCF Exception Shielding as well as using the Logging Exception Handler to log to a flat file.

To Run, set Service1.svc as the start page (resolve Enterprise Library references if required) and use Ctrl-F5 to start the WCF Test Client and then invoke the GetData method. The XML response should show MyFaultContract returned and the file trace.log
in the web site should contain error information.

Description

This solution contains a sample of a rolling XML Trace Listener. The functionality is based on (and leverages some of the functionality of) the Rolling Flat File Trace Listener so it should share the same behavior as that trace listener. The
only difference is that the XML Trace Listener does not support a Header, Footer, or Formatter as the Rolling Flat File Trace Listener does.

The Rolling XML Trace Listener also support full design time integration with the Enterprise Library configuration tool. Simply copy the assembly into the config tool working folder (e.g. C:\Program Files (x86)\Microsoft Enterprise Library 5.0\Bin)
so it can load the trace listener type.

This solution also contains a Rolling XML Trace Listener as well as Flat File Trace Listener. The functionality is based on the Rolling Flat File Trace Listener and Flat File Trace Listener so it should share the same behavior as those trace listeners.
The only difference is that these new implementations resolve an issue where an error occurs during initialization preventing any logging from working by throwing an exception back to the caller when attempting to resolve a LogWriter from the container.
In the configuration tool they should appear as "Custom Rolling Flat File Trace Listener" and "Custom Flat File Trace Listener".

Custom Database Trace Listener Sample

Description

This sample project shows a sample of a Custom Database Trace Listener that adds an additional column to the out of the boxFormattedDatabaseTraceListener. The CustomDatabaseTraceListener will check the LogEntry to see if it is a CustomLogEntry and
if it is then it will add the CustomData information into the CustomData column in the [Log] table.

The Custom Database Trace Listener also support full design time integration with the Enterprise Library configuration tool. Simply copy the assembly into the config tool working folder (e.g. C:\Program Files (x86)\Microsoft Enterprise Library 5.0\Bin)
so it can load the trace listener type.