Registering CustomTraceListeners in code

Topics: Logging Application Block
Aug 25, 2007 at 7:16 PM
Hey,
I have a custom trace listener that outputs to a text box. Is there a way to register it in code once the textbox has been created instead of in the config file?

Thanks,

Steve
Aug 27, 2007 at 4:21 PM
Hi,

You can't register it for use with the Logger interface, if that's what you're looking for, but you can manage a new graph of logging objects any way you want.
You can also modify your listener so you set the text box after it has been created, probably through a static method.

Regards,
Fernando