2

I have a lot of output in my logcat (Android Monitor) which in which I would like to find a specific part. This part starts with a keyword, which is followed by several logs with information I want to check.

I know there is the possibilty to filter the logcat by the Log level and searching for expressions. When I type the keyword in the UI only the logs are filtered by the keyword.

I am interessted in the lines/logs which are followed by the keyword. Is there a search option, where no information is filtered and the results are shown in the complete log?

Commands proposed in this answer like Ctrl+s do not work.

Community
  • 1
  • 1
Petterson
  • 831
  • 9
  • 21

1 Answers1

1

a while ago I had the same problem and created a Logger helper class which help me by tagging the android logs automatically with the line_number, ClassName and Method name via reflection, this had helped me a lot, for example when I just want to filter the output of a method I write the name of the method in the logcat filter and it just gives me all logs inside that method, same with line numbers and Classes, try it out I have made a gist with it.

To use it is easy just do Logger.getLogger and assign to some easy name like log then log like normally just log.d("string") without the tag and it automatically takes the line method and class, It has good documentation on it so you might be able to tweak it if you want, hope it helps.

Eefret
  • 4,724
  • 4
  • 30
  • 46