I am developing a win application in C # that communicates with a WCF service. I want to log exceptions that are thrown to the client to enter the Sql Lite database (the Win application uses the Sql Lite database to store data locally). And then later it needs to be sent to the wcf service as needed so that it can be useful for supporting / analyzing / improving the application.
I need a method that can be directly called in each catch block simply LogHelper.Log(ex).
I would like to know if anyone did this through the corporate library or used any good practice for such a situation?
Update
I already use sql lite database for local data storage through the System.Data.SqLite library
source
share