As always take a backup of the web.config before making changes.
Find the </system.servicemodel>tag and then just above it add
<diagnostics> <messagelogging logentiremessage="true" logmalformedmessages="false" logmessagesatservicelevel="true" logmessagesattransportlevel="false" maxmessagestolog="3000" maxsizeofmessagetolog="3000" /> </diagnostics> |
Then at the bottom of the web.config just before </configuration>add this
<system.diagnostics> <trace autoflush ="true" /> <sources> <source name="System.ServiceModel.MessageLogging"> <listeners> <add initializedata="c:\PDFOutput\messages.svclog" name="messages" type="System.Diagnostics.XmlWriterTraceListener"/> </listeners> </source> </sources> </system.diagnostics> |
Be sure to use the svclog extension. Recycle your WCF service and send some messages through.
Now you are going to find the svclog hard to read unless you have the SVCTraceViewer.EXE
Its part of the Windows SDK and well worth downloading.
No comments:
Post a Comment