Click here to Skip to main content
14,829,981 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all,


I need to use Enterprise library for exception logging in SQL Server 2005.

Now my queries here are that:
1. I would be getting the connection string from different place [not from web.config]. So i guess i need to write a wrapper class for connection. Can you suggest implementation way and the class details for it.
2. Other query is that, in one example i am using following line of code in catch block to log exception in db.
bool s = ExceptionPolicy.HandleException(ex, "CustomException");

Is this correct way? Do i have any better alternative for it??
3. If i want to change database table structure and stored procedure for logging what should i do? Do i need to create wrapper classes by overriding the existing class of Enterprise library?

Please suggest.
Posted
Comments
Rahul.RK 13-Jul-11 8:35am
   
I a referring Enterprise Library 5.0

1 solution

   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900