Cannot get Android Logcat working

I installed the package. I have the window but I never see anything logged even with no filters. I am able to get screen captures so it must surely be connected. It is a development build. What am I missing?

in logcat window top right corner in ‘…’, there’s internal log, try checking it out

1 Like

Don’t see anything odd. This shows after it gets a screnshot too. Not sure if the Filtering line at the bottom is relevant. Oh, and this is Unity 2021.2.7f1 and the package was installed today.

[WorkThread] 15:14:55.3276 Worker thread started
[MainThread]15:14:55.3615 OnEnable
[MainThread]15:14:55.3665 Package: com.XXX.YYY, Auto select: False
[WorkThread] 15:14:57.7297 C:\Program Files\Unity\Hub\Editor\2021.2.7f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\adb.exe devices
[WorkThread] 15:14:57.8629  List of devices attached
[WorkThread] 15:14:57.8669  LGH870DSf8fe05a8   device
[MainThread]15:15:00.1066 Selecting pacakge  (0)
[MainThread]15:15:00.3270

Starting logcat


[MainThread]15:15:00.3270 C:\Program Files\Unity\Hub\Editor\2021.2.7f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\adb.exe -s LGH870DSf8fe05a8 logcat -v year *:V
[MainThread]15:16:39.5276 Waiting for com.XXX.YYY launch, elapsed 15 seconds
[MainThread]15:16:39.5276 Reset packages
[MainThread]15:16:39.5286 C:\Program Files\Unity\Hub\Editor\2021.2.7f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\adb.exe -s LGH870DSf8fe05a8 shell pidof -s com.XXX.YYY
[MainThread]15:16:39.7899 15281

[MainThread]15:16:39.7939 Auto selecting package com.XXX.YYY
[MainThread]15:16:39.7939 Stopping logcat (process id 31924)
[MainThread]15:16:39.7949

Starting logcat


[MainThread]15:16:39.7949 C:\Program Files\Unity\Hub\Editor\2021.2.7f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\adb.exe -s LGH870DSf8fe05a8 logcat --pid=15281 -v year *:V
[WorkThread] 15:17:44.7245 C:\Program Files\Unity\Hub\Editor\2021.2.7f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\adb.exe -s LGH870DSf8fe05a8 shell screencap /sdcard/screen.png
[WorkThread] 15:17:45.7669 C:\Program Files\Unity\Hub\Editor\2021.2.7f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\adb.exe -s LGH870DSf8fe05a8 pull /sdcard/screen.png C:\Users\ukpol\AppData\Local\Temp\screen_2022-03-04-15-17-45.png

I guess - open terminal from logcat window, and try to execute adb logcat yourself, it’s not the first time I see logcat not working on LG phones, maybe there’s some setting in Developer Options which disables logcat, maybe worth checking.

P.S I see you’re filtering by package, so while unlikely, maybe your package doesn’t print anything to logcat?

If I set No filter it still doesn’t come up with anything. I use Android Studio normally and that is working fine. Not sure what command line to use (as use Studio normally)

Hmmm, just plugged in a Huawei MediaPad M5 and it works. So is looking like an LG related issue. :frowning: