I am using worklight 6.0 and I am able to log data to a console using WL.Logger.debug("msg");
.
My question is: How to write all of these logs to a file?
My requirement is to store these logs on the mobile device itself so that if some problem occurs, the user will be able to report the problem by attaching that log file. In the app there will be a menu "Report problem", if the user clicks on that, email is opened with this log attached automatically.