30

I'm asking this in relation to Flex Builder, but it might apply to Eclipse in general.

Trace statements in Flex Builder get sent to an Eclipse Output Console. What is the easiest way to filter this text on the Eclipse side?

Specifically, I'd like to be able to filter (ignore) lines by patterns.

I came across Logback, but it seems like overkill for this scenario. Is there no way to script something like this Eclipse itself?

darscan
  • 963
  • 1
  • 12
  • 17

4 Answers4

21

Nothing specific to FlexBuilder. If you need such a functionality, you'd need to write an Eclipse plug-in.

Take a look at grep-console one to start off.

Tomáš Zato
  • 50,171
  • 52
  • 268
  • 778
dirkgently
  • 108,024
  • 16
  • 131
  • 187
  • 1
    Grep Console worked for me, but the interface was not intuitive. Here is an article by the author how to use Grep Console: http://marian.schedenig.name/wp-content/static/grepconsole_userguide/ – jason.zissman Nov 14 '17 at 13:58
  • extremely cryptic and non-intuitive. – java-addict301 Jun 10 '19 at 19:53
  • I also found this article useful for filtering out everything except for specific lines: https://marian.schedenig.name/2012/08/12/grep-console-how-to-4-filtering-output-with-the-grep-view/. Once you get a few working, you kinda "got it" – Jake88 Dec 18 '19 at 21:16
5

Also GrepClipse may help. Also available on the Eclipse Martket.

xmedeko
  • 7,336
  • 6
  • 55
  • 85
3

there is also Easy Console Grepper which opens up own console, easier at first then grep-console I think. Just define what You searching and it will show after console execution lines with searched expression.

SkorpEN
  • 2,491
  • 1
  • 22
  • 28
  • It looks good, but I couldn't find a way how to change the Easy Console Grepper console font size. – miloxe Jun 05 '19 at 12:08
2

Please use Easy Console Grepper Eclipse Plugin as this is much easier and more intuitive than grep-console.

java-addict301
  • 3,220
  • 2
  • 25
  • 37