I can set up my wcf client proxy class in code.

 

I can set up a Trace Listener in particular I would like to use the default
XmlWriterTraceListener. There does not seem to be any way of intregrating a
wcf client proxy with a trace listener short of
building a custom tracelistener and integrating this via the app.config
file. The very thing I am trying to avoid.
 
I am not sure why it needs to be this difficult or hard.
 
There must be a way of doing this so that this incredibly useful diagnostic
tool can be used in a production environment at a client's site.
 
At http://msdn.microsoft.com/en-us/library/ms733025.aspx
 
It states

Windows Communication Foundation (WCF) outputs the following data for
diagnostic tracing:

.         Traces for process milestones across all components of the
applications, such as operation calls, code exceptions, warnings and other
significant processing events.

.         Windows error events when the tracing feature malfunctions. See
<http://msdn.microsoft.com/en-us/library/ms733738.aspx> Event Logging.

WCF tracing is built on top of
<http://msdn.microsoft.com/en-us/library/system.diagnostics.aspx>
System.Diagnostics. To use tracing, you should define trace sources in the
configuration file or in code. WCF defines a trace source for each WCF
assembly. The System.ServiceModel trace source is the most general WCF trace
source, and records processing milestones across the WCF communication
stack, from entering/leaving transport to entering/leaving user code. The
System.ServiceModel.MessageLogging trace source records all messages that
flow through the system.

 
Well it says "or in code", but how to do this in code is as elusive as ever.
 
Regards Peter

 

 

Regards Peter Maddin
Applications Development Officer
PathWest Laboratory Medicine WA
Phone : +618 6396 4285
Mobile: 0414 240 307 
E-Mail : [email protected]; [email protected]
The contents of this e-mail transmission outside of the WAGHS network are
intended solely for the named recipient's), may be confidential, and may be
privileged or otherwise protected from disclosure in the public interest.
The use, reproduction, disclosure or distribution of the contents of this
e-mail transmission by any person other than the named recipient(s) is
prohibited. If you are not a named recipient please notify the sender
immediately.

 

 

Reply via email to