Logcat filter for phonegap / cordova plugin?

When i use

Log.d("testTag","you can see this");

      

in the Phonegap plugin and try to filter the Logcat in the terminal with

adb logcat -s testTag

      

nothing appears. If I use logcat without filter there are too many logs. Is there a way to show the relevant logs in the terminal using logcat?

+3


source to share


1 answer


First of all, you need to make sure that android.util.Log

was imported or you can explicitly use

android.util.Log.d("testTag","you can see this");

      

Second, using a chrome filter, this means the filter-only app is run by the chromium processor (your cordova / phonegapp app)



adb logcat chromium

      

If some texts were printed to the console, but not your expected text, there is definitely something wrong with your logic and your log cannot be reached

0


source







All Articles