I am creating a generic error handling / logging class for our applications. The goal is to log the exception info, info about the class and function (as well as parameters) and if relevant, the information about the System.Data.SqlClient.SqlCommand object.
I would like to be able to handle passing in SqlCommands, TableAdaptors, and SqlDataAdaptors.
I am new to using reflection and I know that it is possible to do this, I am just not sure how to go about it. Please advise.
Thanks!