Nur Bar Nur Bar - 1 year ago 160
Java Question

React Native, Android Log.

Is there a way in react native to see the log from native (java) modules of android?

I'm using javas log module - but I'm not getting anything from there. and to be honest I'm not sure how to use it if it's at all possible. atm there isn't much code - it's just

Log.d("Notification","Notify App");

Because I want to see if I can see the notifications somewhere - I do know the java module is registered correctly as I'm calling other functions from it.


Answer Source

If you put Log.ds in your native code, your can access the logs with Android Device Monitor in android studio, or with this command on the terminal: adb -d logcat <your package name>:<log level> *:S

Make sure USB debugging is enabled in your phone.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download