Jump to content

logcat is dumb :(


Guest cepr

Recommended Posts

Hello guys,

I have a Deutsch T-Mobile Pulse, and I use it to develop applications using the SDK.

adb is working fine (adb shell, adb install, adb ... is working), but logcat is dumb. When I launch logcat, no log is displayed at all.

I have an official device (non-rooted), with rom U8220V100R001DEUC85B116SP01.

Thanks you and best regards,

-Cedric

Link to comment
Share on other sites

Guest martinbrook
Will have a look here. I did get a device id from my kernel at the weekend instead of the usual ???????????

logcat working on the new kernel both on the device from adb shell and from the host adb logcat.

Had to clear the buffers first with adb logcat -c

As specified here :-

> Yes it is a reproducible case. Exact content of the log change but it

> always finish by "logcat read: Invalid argument" and I need to restart

> the mobile to be able to read any log again.

> It seems that something is getting twisted up in the logging.

This really seems like a bug, but there is a quick workaround:

run "adb logcat -c" once to clear the log, then "adb logcat" will work again until the log fills up.

Florian

Martin

standing on the shoulders of giants

Link to comment
Share on other sites

Guest deardan

Hi Cedric

You may try follow means:

adb shell

echo 1 > /sys/kernel/logger/log_main/enable // ** '1' is enable log_main,

echo 2 >/sys/kernel/logger/log_main/priority // ** '2' is the log level, you can get the level number from the android source code.

Edited by deardan
Link to comment
Share on other sites

I did get a device id from my kernel at the weekend instead of the usual ???????????

Ah, fantastic. That's been pissing me off for a while (it breaks adb in eclipse).

Link to comment
Share on other sites

  • 2 weeks later...
adb shell

echo 1 > /sys/kernel/logger/log_main/enable // ** '1' is enable log_main,

echo 2 >/sys/kernel/logger/log_main/priority // ** '2' is the log level, you can get the level number from the android source code.

Ah, I also needed to do this. Thanks.

Link to comment
Share on other sites

  • 1 year later...
Hi Cedric

You may try follow means:

adb shell

echo 1 > /sys/kernel/logger/log_main/enable // ** '1' is enable log_main,

echo 2 >/sys/kernel/logger/log_main/priority // ** '2' is the log level, you can get the level number from the android source code.

works like it should. thanks! :P

Link to comment
Share on other sites

  • 4 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.