question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android M changed logcat output => no logs displayed

See original GitHub issue

On 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:closed
  • Created 8 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
Binghammercommented, May 26, 2016

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.

5reactions
AndreSandcommented, Jul 28, 2016

Same issue. Resolve with: adb logcat -v brief | pidcat com.myPackage

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found