Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to increase no of lines(log level) in Logcat [duplicate]

Possible Duplicate:
Java / Android - How to print out a full stack trace?

i am working on an android app. Sometimes it stops working and show force close error.

when i view the logcat it shows 4 to 5 lines then says 15 more/ 11 more. i cannot reach to line where that exception occured. Is there any way to increase view full stack trace.

Please Help I am stuck. Thanks.

If i have not explained properly please someone edit the question.

EDIT: Answer to question is

Java / Android - How to print out a full stack trace?

like image 914
Arif Avatar asked Jun 03 '12 12:06

Arif


People also ask

What is verbose Logcat?

Verbose: Show all log messages (the default). Debug: Show debug log messages that are useful during development only, as well as the message levels lower in this list. Info: Show expected log messages for regular usage, as well as the message levels lower in this list.

How do I copy Logcat logs?

After the app has produced some output, in the Logcat window hold down the ALT key, and drag down to select the columns. Use CTRL+C (Windows) to copy to clipboard. Navigate to a spreadsheet (Google Sheets), select a starting cell, and use CTRL+V to paste the columns into the spreadsheet. Save this answer.

What is Logcat buffer?

Logcat is a command-line tool that dumps a log of system messages, including stack traces when the device throws an error and messages that you have written from your app with the Log class. This page is about the command-line logcat tool, but you can also view log messages from the Logcat window in Android Studio.


1 Answers

Assuming you are using Windows/Eclipse...

Window -> Prefernces -> Android -> LogCat -> Maximum number of logcat messages to buffer

Set it to a value that makes it more usable to you.

like image 140
Barak Avatar answered Oct 13 '22 09:10

Barak