tags:

views:

73

answers:

3

Hi guys,

is there a possibility to get all things that are write in Debug.WriteLine in a TextBox or something like this?

+1  A: 

Yep. You can implement your own TraceListener class and direct the output to any textWriter

mfeingold
+1  A: 

You can create a class that inherits from TraceListener, and add an instance of that class to the Debug.Listeners collection.

Konamiman
+1  A: 

It's conceivably possible to write a custom trace listener that could do this.

Alternatively, why not explore something like log4net -- this gives some very flexible approaches to logging that are much more sophisticated than the default logging in the framework. It can even send its output over UDP to an external listener...

Jeremy McGee