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.<pre>bool s = ExceptionPolicy.HandleException(ex, "CustomException");</pre> Is this correct way? Do i have any
better alternative for it??
3. If i want to change database table structure and stored procedure parameters for logging what should i do? Do i need to create wrapper classes by overriding the existing class of Enterprise library?Please suggest
Please suggest demo code. Thanks.