Check out the "Extended Tracing" sample here:
http://msdn.microsoft.com/en-us/library/aa354511.aspx
You can run it with setting up IIS as well.
- Just check out service properties "Specific Port" and set it as 3333.
- Open App.config and modify the endpoint address to be "http://localhost:3333/service.svc"
- I recommend you add
to the section in web.config http://dotnetmind.blogspot.com/2008/07/step-into-wcf-service.html - Make sure you create the folder "C:\logs\"
- Run the sample
- You should get two new files (you might need to stop the development server)
- ExtendingTracing-client.svclog
- ExtendingTracing-service.svclog
Complete sample and source code got recently published here:
ReplyDeletehttp://www.dotnetcodecentral.com/Post/311/wcf/trace-log-messages-from-end-to-end-using-wcf-and-a-client
I am just wondering on how I will be able to achieve it for WCF REST/Data Services (OData)