过滤 Eclipse 控制台输出文本的最简单方法

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/669369/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 13:35:33  来源:igfitidea点击:

Easiest way to Filter Eclipse Console Output text

eclipseconsoleflexbuilderfiltering

提问by darscan

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

我问这个与 Flex Builder 相关,但它可能适用于一般的 Eclipse。

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?

Flex Builder 中的跟踪语句被发送到 Eclipse 输出控制台。在 Eclipse 端过滤此文本的最简单方法是什么?

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?

我遇到了 Logback,但对于这种情况似乎有点过头了。有没有办法编写类似 Eclipse 本身的脚本?

采纳答案by dirkgently

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

没有特定于 FlexBuilder。如果您需要这样的功能,则需要编写一个 Eclipse 插件。

Take a look at grep-consoleone to start off.

看一看grep-consoleone 开始。

回答by xmedeko

Also GrepClipsemay help. Also available on the Eclipse Martket.

此外GrepClipse可能会有帮助。也可在Eclipse市场上获得

回答by SkorpEN

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

还有Easy Console Grepper可以打开自己的控制台,我认为起初更容易,然后是 grep-console。只需定义您搜索的内容,它将在控制台执行显示搜索表达式。

回答by java-addict301

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

请使用Easy Console GrepperEclipse Plugin,因为它比 grep-console 更简单、更直观。