Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
6 Points
7 Posts
Apr 29, 2011 06:22 AM|LINK
You can check if you are having a database trace listener categorySource and the LogWriter is being written to the Database category. Below code snippet should help you.
Config file: <categorySources> <add switchValue="All" name="Database"> <listeners> <add name="Database Trace Listener"/> </listeners> </add> </categorySources> In the Code file: LogEntry entry = new LogEntry(strMessage, , "Database" , 8, 9009, TraceEventType.Error , "Mohammed Ghouse Barq Logging", exProperties); defaultWriter.Write(entry);
Config file:
defaultWriter.Write(entry);
-Mohammed Ghouse Ibne Barq Kadapavi http://www.ProgrammersVision.blogspot.com https://sites.google.com/site/BarqKadapavi
ghousebarq
Member
6 Points
7 Posts
Re: Database Trace Listener in the Enterprise Library doesnt work
Apr 29, 2011 06:22 AM|LINK
You can check if you are having a database trace listener categorySource and the LogWriter is being written to the Database category. Below code snippet should help you.
-Mohammed Ghouse Ibne Barq Kadapavi
http://www.ProgrammersVision.blogspot.com
https://sites.google.com/site/BarqKadapavi
http://www.ProgrammersVision.blogspot.com/
https://sites.google.com/site/BarqKadapavi