Payam Hesami
Payam Hesami

Reputation: 97

How to avoid hiding logs in logCat?

I have a problem with my Eclipse. LogCat just holds messages about 10 seconds and after that they will disappear before i can read them.

Anyone knows how to avoid hiding logCat messages?

Edit:I don't know what's going wrong with my LogCat. When i connect my galaxy s2 device it shows around 1000 messages in just 2 or 3 seconds!

here is one of them.they are mostly like this:

01-24 16:56:47.353: D/(2001): [HYPOS] NOMOVE Time 24653125, PowerMode 2, GPSWeakSignal 54, GPSFixTime 0, IsPedestrian 0, DOE 3editcode here

Upvotes: 0

Views: 456

Answers (2)

Marcin Orlowski
Marcin Orlowski

Reputation: 75629

LogCat view got limit on number of lines it keeps in scroll buffer. By default it is set to 5000 lines. On some devices, where activity is high, this can be not sufficient. To increase the limit go to Ecplise settings: Window -> Preferences -> LogCat and increase value of Maximum number of logcat messages.

Note that freezing autoscroll is NOT a solution. You just freeze the autoscroll but data are still being read from the device and placed in logcat buffer.

Upvotes: 1

Kiran
Kiran

Reputation: 129

Another option is the use of the following command in command prompt which will provide you all logs,

adb logcat > LogFileName.txt

Again you can customize this based on your device or emulator names when more than one devices or emulators are available by specifying their names.

Upvotes: 0

Related Questions