Android – write Cordova console.log to a file

Who knows if console.log can be written to a file or something like that?

I have logged in to my application, but it is only written on the console. For remote debugging purposes, I also need to write the existing log to a file

I want to create a file and write my log in it, but this will enable me to copy the existing log code. Therefore, it may be better if I can redirect the location of console.log

My application uses ionic, Cordova, and uses the crosswalk browser plug-in to mix IOS and Android

resolvent:

This is a Cordova plugin logtofile for your requirements. Unfortunately, it is only applicable to Android. Since you are using ion framework, please take a look at – FileLogger

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>