09-09-2013 05:02 AM
I am developing a blackberry OS webworks application and I need to get log messages( I am using console.info("some string") ) output in a file on the device whenever I run my application.
I am using IBM Worklight framework.
09-12-2013 10:46 AM
You can use the HTML5 API to create a file and write to it when you call console.info()
In fact, if you google for an example that does that, I am pretty sure that I saw one somewhere. It might have been on HTML5rocks.com, but it's been a while.
We've got a sample on this page that shows you how to read a file using the HTML5 API, and it can be altered to write fairly easily.