Write console output using logging block.

Topics: Logging Application Block
Dec 4, 2008 at 1:01 AM
How can I write something on screen as well as into the log using logging block?

Currently I have to issue both commands:
Logger.write("message");
Console.write("message");

How both of these commands can be combined into one? Which listeners I need to add?
Dec 4, 2008 at 4:50 AM
Hi,

You can create your own custom trace listener. You can add your commands to the methods that you'll override. See this link:
http://msdn.microsoft.com/en-us/library/cc511727.aspx


Valiant Dudan
Global Technology and Solutions
Avanade, Inc.
entlib.support@avanade.com