customise enterprise logging Log table to add new column

Topics: Logging Application Block
Aug 23, 2012 at 12:54 AM


I am working with enterprise library 5.0 logging. I was logging exception details to database using Logger.Write method. Now I need to add 2 more fields to Log table and also need to pass this information while calling Logger.write method. How can I customize the Logging to accept these two parameters. Please help me in detail as i am very new to this . Also what all need to be done in the webconfig file. Urgent please ;

Aug 23, 2012 at 5:23 AM

See this answer along with the Custom Database Trace Listener Sample.

Randy Levy
Enterprise Library support engineer