I'm developing a win app in C# which communicates to a WCF Service. I want to log exceptions that are thrown on client to be logged in Sql Lite Database (Win app is using Sql Lite database for storing data locally). And then later it should be sent to the wcf service when required so that it can be useful for support/analysis/application improvement.
I want a method which can be directly called in every catch block simply by LogHelper.Log(ex)
.
I would like to know if anyone has done it through Enterprise library or used any good practice for such situation?
Update I'm already using sql lite database for storing data locally through System.Data.SqLite library