New in IntelliJ IDEA 11: Improved filtering in Android logcat

In IntelliJ IDEA 11 we’ve improved Android logcat view, so now watching the logs of your applications became much more convenient.

First, you can create your own named filters and switch between them:

You can use regular expressions to filter the log, e.g. by a tag or message text. Note that autocompletion of tags already presented in the log is available: 

Another noteworthy improvement is that multiline messages aren’t cut anymore when you filter them by a named filter or using search. For example, if you search for “ActivityThread.java”, you’ll see full stacktrace containing the query, but not just separate lines: 

This entry was posted in New Features and tagged , . Bookmark the permalink.

12 Responses to New in IntelliJ IDEA 11: Improved filtering in Android logcat

  1. RockPiLP says:

    This is really great, and matches (perhaps even improves on) the Android logcat in Eclipse.

    One area that I think is unclear is how the PID should be used. Would it be possible to have a checkbox to restrict logcat output to the PID of the process that the app being developed is running as? That would be more convenient than having to edit the filter each time the process is relaunched to match the PID.

  2. sos says:

    Newest DDMS has the ability to filter by application name, it’s incredible useful.

  3. Arno.Nyhm says:

    i would like to see this filter and/or a highlighter (with regex) for the normal console view

  4. Torsten says:

    Can I combine LogTag and LogMessage, e.g.:
    LogTag
    LogMessage ERROR

    This should give me all myTags Plus the error messages?

    Is that possible?

  5. Eugene Kudelevsky says:

    @Torsten, If I understand correctly, no, now it is impossible. If you have any idea how we can support it (for example, choosing several filters in the view), please file an issue in our tracker

  6. Torsten says:

    @Eugene
    Thanks, being able to mark several would be the desired result. It seems not to work until now, but is a real minor issue for me.
    Just wanted to see if it is already in the program.

  7. Tim says:

    *Really* needs a way to filter by package or a way to filter by this PID. Using the raw PID numbers is kind of useless.

  8. Dirk Jäckel says:

    What kind of regexes are allowed?

    How would I make a filter that does NOT show the following tags: GPSD, libsecgps and BatteryService

    Just as an example.

  9. Heiko W. Rupp says:

    @Dirk did you find a solution for that negation?

  10. Martin Krischik says:

    I too would like a negative filter. Especially now that the programmers of Jelly Bean garbage collector forgot of there «DEBUG/dalvikvm(23859): GC_CONCURRENT» message — which logs about twice a second.

  11. Martin Krischik says:

    Well, found a solution:
    {{{
    ^(?!.*(dalvikvm|Email)).*$
    }}}
    will remove messages from dalvikvm and Email.

  12. AoH.n says:

    Martin I’d reach through this computer and hug you if it was possible. I added some more concrete strings to exclude in your regex and now I can actually follow multiple runs of my program. Headache reduced.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>