Lucas
Lucas

Reputation: 3591

Copy "Text" column content only from logcat view

Does anybody know of a way, or something that could ease the process of manually removing the extra strings, to get only the content of the "Text" column in the logcat view when copying the logcat content?

Upvotes: 2

Views: 887

Answers (3)

frodo2975
frodo2975

Reputation: 11783

Another way to do this is to paste it into a text editor that supports multiline editing, like VSCode or Sublime. Then, you can middle-mouse drag to multiselect the start of all the lines and delete them.

Upvotes: 0

Muhammed Refaat
Muhammed Refaat

Reputation: 9103

There are two ways to achieve that:

The First Way, if you have multiple lines:

  • copy your text to Notepad++ or any editor that uses Regex.

  • press ctrl+f and choose Replace tab.

  • use a Regex format in order to remove all the unnecessary tags info, for example in the case of System.out messages, the Regex formula will be:

    \d*-\d* \d*:\d*:\d*\.\d*: I\/System\.out\(\d*\):
    if the messages are like: 03-14 14:44:17.557: I/System.out(18293):

  • finaly, use this formula in [find what] field and use a white space in the [Replace with] field, and don't forget to choose Regular Expression choice in the (search mode) field.

The second way, if you have a single line of log: as described here:

  1. Right click on the line in Logcat which you wish to copy text from
  2. Click “find similar messages”
  3. In the window that pops up the text is contained in the field “by Log Message:”
  4. This text can now be copied via Ctrl+C

Upvotes: 0

Lucas
Lucas

Reputation: 3591

Seems not possible, but I've drawn an attention to it through android issues portal: https://code.google.com/p/android/issues/detail?id=77883&thanks=77883&ts=1413891569

Hopefully it will be implemented soon enough, as it woudl be really helpful.

Upvotes: 0

Related Questions