Custom Trace Listener that would write traces to a textbox.

Topics: Logging Application Block
Dec 26, 2006 at 9:10 PM

I have followed the quickstart app and used the custom trace listener from there as a start. It works great If I have it display a message box. ( So I know it is working.) But if I try to Raise an event to write to a textbox, it will not work.

The application is a server app, I wanted the log to be displayed and also written to a log file.

Has anybody done this before? Does anybody have some sample code to do this.
Dec 27, 2006 at 9:10 PM
I recommend looking at the source code of the current trace listeners in the Logging Application Block for guidance. I don't have enough information about the current problem to help you, but I bet the trace listener source code provided with EntLib will help you as well as stepping through the source code via the debugger in VS 2005.




David Hayden
Microsoft MVP C#