Can I attach a .NET TraceListener to an externally running process?
Posted
by BBlake
on Stack Overflow
See other posts from Stack Overflow
or by BBlake
Published on 2010-03-15T17:28:21Z
Indexed on
2010/03/15
17:29 UTC
Read the original article
Hit count: 217
.NET
|tracelistener
I am developing an application scheduling program that will run other applications using System.Diagnostics.Process. The external applications are of various types (some .NET and some not). For those external apps that have trace logging enabled, is there a way that I can attach the tracelistener of the parent/calling application to listen to and record all the trace output from the child/called application to the parent application's trace output?
This is not primarily for debugging purposes. This is more to track trace output from all the various scheduled applications by collecting it into one place as much as possible.
The scheduler app is still in the early design stages, but will be .NET, and I'm trying to clear up potential design issues before I get into it too far.
© Stack Overflow or respective owner