How can I see timestamp in Logcat? Is there any application which shows me the log along with the timestamp? Also, how can I increase the size of the Log in开发者_JS百科 andriod phone?
To get timestamps: logcat -v time
To run logcat on the device at a shell prompt: logcat
There are several free logcat viewers for Android. I've heard that aLogCat is pretty good.
EDIT
You can set your preferences in aLogCat to see the time.
Regarding your second question, I found an answer here:
The logs are held by a kernel device; the entries are in /dev/log. The buffer is currently 64KB, and there is no way to change the size on a production device.
The easiest way to keep more of the log is to run "logcat" and send the output to a file. logcat runs on the device, so you could run it there and redirect it to (say) /sdcard/log.txt.
精彩评论