How can we maintain a error Log file (.txt) on a device for a phonegap based iOS and android application ?

我只是一个虾纸丫 提交于 2020-01-06 02:34:06

问题


How can we maintain a error Log file (.txt) on a device for a phonegap based iOS and android application ? Just like we have error log file in native android applications. Is there any phone gap plugin available to maintain such logs in device only .


回答1:


There is a plugin (Android only) cordova-plugin-logtofile which seems to do what you need.

It can be also manually achieved by using core plugin cordova-plugin-file: Cordova Example: Writing to a file.



来源:https://stackoverflow.com/questions/32754105/how-can-we-maintain-a-error-log-file-txt-on-a-device-for-a-phonegap-based-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!