Logging application block question

Topics: Logging Application Block
Sep 23, 2008 at 4:45 PM

Hello,
Iam a newbie to EL  and logging in general.

Iam trying to build an application wheer the error log should look like the following if it is information

[INFO ][2008-09-10 16:24:01,504]Implementation]


or if it is an error
[ERROR][2008-09-10 16:25:56,170][Service]

followed by the details of the error. So Iam in the process of writing a custom class for this :

Below is my sample application's code :

[

ConfigurationElementType(typeof(CustomTraceListenerData))]

 

 

public class DebugTraceListener : CustomTraceListener

 

{

Whenver I try to build the application I get an error saying namespace CustomTraceListener Data not found. I have added references to ObjectLibrary,Common and Logging dlls.

Please help.

Sep 23, 2008 at 8:36 PM
ok...found the issue ..I had to include 

using

Microsoft.Practices.EnterpriseLibrary.Logging.Configuration;