Android M changed logcat output => no logs displayed
See original GitHub issueOn the M preview 1, with a Nexus 6: Alas more changes 😐 It seems to use the same “Start proc” format as 5.1, but the (default) columns have changed.
An example log line:
06-06 12:14:46.355 372 18641 D audio_hw_primary: disable_audio_route: reset and update mixer path: audio-record
Regex + group changes that fix output:
LOG_LINE = re.compile(r'^\S+\s\S+\s+(\d+)\s+\S+\s([A-Z])\s([^:]+)\s(.+)$')
owner, level, tag, message = log_line.groups()
Not sure how you’d like to fit them in with the existing code (if you have any intention of fixing this for preview releases), but I figured I’d at least try to save some effort 😃
Issue Analytics
- State:
- Created 8 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
How to Fix "Android studio logcat nothing to show" in Android ...
Solution 1: Restarting Logcat · Solution 2: Change Log Level · Solution 3: Plug Unplug · Solution 4: Restart Android Studio · Solution...
Read more >Write and view logs with Logcat - Android Developers
By default, Logcat displays just the log messages for the app running on the device. To change this default, see how to filter...
Read more >Android Studio Logcat not showing anything - Super User
Open edit configuration, on your top right hand corner. Click on the Miscellaneous tab. Tick "Show logcat automatically" box. Done.
Read more >Android studio logcat not showing anything | 100% working ...
Just restart your mobile device and then check if logcat is showing or no. Solution 3: Android Debug Bridge (ADB) use libusb backend....
Read more >How to display logs from .CPP file in LogCat? - Google Groups
#include <android/log.h> In some method I have also written this, in order to print it in LogCat, but I got no output. __android_log_print(ANDROID_LOG_INFO ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I know this is closed, but I am seeing the problem again. I can fix it by using
adb logcat -v brief | pidcat
as stated above.Same issue. Resolve with:
adb logcat -v brief | pidcat com.myPackage