How to copy logcat output to clipboard?

I am developing Android applications in eclipse and how can I receive logcat messages to my clipboard?

+45
android eclipse logcat
Jul 23 '12 at 8:16
source share
6 answers

Select a message and press ctrl + c. You can save it in a text file with this button: better picture

If you use a mac, the workaround is to right-click, search for similar messages, and then copy from the dialog box. - Thanks, Snicolas

+56
Jul 23 '12 at 8:20
source share

You can click on the output line in LogCat and click [ctrl] + [c], as usual, and then the regular paste in what you want. You can use shift and click to select multiple lines.

+10
Jul 23 '12 at 8:20
source share

Ctrl + C works, but you need to make sure that you click on the first line of any output, divided into several lines.

+10
Aug 29 '13 at 13:28
source share

It is also noteworthy that at least version 21 of the ADT plugin has a TID column displayed in the Eclipse log viewer when you have display options at maximum verbosity, but the stream ID is not saved if you copy and paste the contents of this view. Instead, you will see something like [debug level] [timestamp] [invocation] (PID) ... but not a stream identifier. I don't know if there is an easier way to capture TID data directly from eclipse, but this can be done using a remote adb shell like this:

Run the following command from the command line: adb -s [serial number of your device] shell "logcat -v threadtime"> [your_output_file]

your session will be visible, but in fact the output of the device's logcat, exactly as shown in the logcat eclipse view, including the TID, is written in real time to your output file. When you want to view the contents, exit the logcat dump process with ctrl + c and open the file on your PC. Other logcat filtering options, etc. Can be found here. one

+2
May 01 '13 at
source share

From the command line:

adb logcat > log.txt 
+2
Nov 18 '13 at 14:28
source share

For those of you who work with Eclipse on a Macintosh, follow these steps:

  • Select the parts of the logarithm that you want to copy to the clipboard (or just select everything by pressing ctrl-a when the logcat window is active)
  • Click on the "Save" icon (it looks like a floppy disk).
  • Save it in a convenient place.
  • Open the log file in another text editor (use your favorite NOT eclipse)
  • Choose what you want.
  • Now type ctrl-c to copy to the clipboard

Yes I know; it's a pain in the ass, but it works.

0
Jan 28 '15 at 22:19
source share



All Articles