Listening to traces exhibited by other application

  • Thread starter Thread starter Vinay
  • Start date Start date
V

Vinay

Hi I want to listen to traces exhibited by other
applications. Can some one help me and let me know how to
do it?

Can TextWriterTraceListener class be used from outside
application to listen to traces?

Thanks,
Vinay
 
Hi Miha,
I want to do it programatically using C#. Otherwise
logman also comes with Windows XP which also logs traces.
Is it possible using C#.(specifically class like
TextWriterTraceListener)

Thanks,
Vinay
 
Hi,

Vinay said:
Hi Miha,
I want to do it programatically using C#.

Ah, I see.
I guess you'll have to resort to interop to catch outputdebug api.
Other than that, I don't think that trace produces any other well known
messages.

Otherwise
 
I don't believe the framework has any built in
cross-AppDomain-trace-listeners...

However, one could inherit from the base TraceWriterListener (sp?) and have
it write to a certain network socket and have a corresponding listener that
would connect to the socket and output all Tracing messages from the
socket...

Probably another way to do it via the built-in Remoting framework too, not
exactly sure how you'd go about it...

HTH
 
Back
Top