Check out the "Extended Tracing" sample here:
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)