Topics: Logging Application Block
Aug 2, 2009 at 5:17 PM


I want to create a custom trace listener that will write to a text file then close it after logging. My question is, how can I make the log filename configurable from the config?

Aug 3, 2009 at 3:49 AM


One thing you can do is to use Attributes property of the Custom Trace Listener. The Attributes property takes keyValue collection. Then you can access it later in your code.

Valiant Dudan
Global Technology and Solutions
Avanade, Inc.