Microsoft Exam Questions

What should you do to successfully enable message logging.?

You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You want to enable message logging.
You add the following code fragment to the service configuration file.

<System.diagnostics>
<sources>
<source name=”System.ServiceModel.MessageLogging”>
<listeners>
<add name=”messages” Type=”System.Diagnostics.XmlWriterTraceListener” />
</listeners>
</source>
</sources>
</System.diagnostics>

You receive an exception.
You need to successfully enable message logging. What should you do?

A.
Remove the message filter.

B.
Set the switchValue attribute to verbose.

C.
Set the initializeData attribute to the name of a log file.

D.
Set the maximum size of the message to be logged to 256k.