How do you recover logs from your app running in release mode, on the end-user device of a remote user?
Actually I use a custom made module that mirrors all Log() calls to a text file in DirInternal, and the app has a "send logs" option that sends this file via email.
When I need to investigate an issue, I must ask the user to use that option to send me the logs.
While funcional, this method requires replacing all the standard Log() calls with my Logger.WriteLog().
The recent switch from services to receivers has also made more difficult to keep using this method, because the receiver may be called when the app is not actually running and the Logger module has not been yet initialized.
Is there any other proven method for logging in a production environment?
Actually I use a custom made module that mirrors all Log() calls to a text file in DirInternal, and the app has a "send logs" option that sends this file via email.
When I need to investigate an issue, I must ask the user to use that option to send me the logs.
While funcional, this method requires replacing all the standard Log() calls with my Logger.WriteLog().
The recent switch from services to receivers has also made more difficult to keep using this method, because the receiver may be called when the app is not actually running and the Logger module has not been yet initialized.
Is there any other proven method for logging in a production environment?