Tired of wondering what error you have on your failing wcf service?
Add this to your web.cofig
<configuration>
...
<system.diagnostics>
<trace autoflush="true" />
<sources>
<source name="System.ServiceModel"
switchValue="Information, ActivityTracing"
propagateActivity="true">
<listeners>
<add name="FuckingAwesomeWCFLogger"
type="System.Diagnostics.XmlWriterTraceListener"
initializeData="FuckingAwesomeWCF.log" />
</listeners>
</source>
</sources>
</system.diagnostics>
...
</configuration>
20080104
Logging on WCF Web Services
Subscribe to:
Post Comments (Atom)

0 comments:
Post a Comment