Huawei, logcat not showing the log for my app?

Solution 1:

OK, since I had another Huawei Ascend I ran into the same problem. This time I have the exact answer. Follow these instructions (from denispyr's answer on Why doesn't logcat show anything in my Android?)

Dial

*#*#2846579#*#*

and you will see a hidden menu. Go to the Project Menu > Background Setting > Log setting and define the log availability (log switch) and level (log level setting).

And then make sure you restart your phone.

Please note this probably only applies to Huawei phones.

Also note that if you're on a Huawei tablet (e.g. MediaPad M3), instead of dialing, you launch the Huawei Calculator in landscape and enter ()()2846579()().

Solution 2:

For Huawei with Android 8.0+

we must dial the code: *#*#2846579#*#*

and selecting the option AP Log will be enough to display the messages in the LogCat.

introducir la descripción de la imagen aquí