I’ve read the disappointing answer here regarding enabling logging of WCF messages from code, but thought that maybe since then there may be other suggestions for how to do this. I’m working under the constraints of developing a .NET 3.5 library that gets loaded (via COM) into a larger win32 framework. As such, I do not have control of the contents of any app.config file.
Is there any way (Reflection to access internal classes? Some other nastiness?) to accomplish this?
I just managed to solve this by adding an IClientMessageInterceptor, used this post as a reference.