Console output filtering in Eclipse

Is it possible to filter write to console output in eclipse. I would like to filter log4j debugging from all output. Tks.

+6
source share
4 answers

Grep Console Plugin can filter the output of the eclipse console to the second view http://marian.schedenig.name/projects/grep-console/

+7
source

If you want to filter the output of log4j, then you should put the log4j.properties file in your classpath and change the root log only at the information level.

This URL will provide much more information on this subject: http://logging.apache.org/log4j/1.2/manual.html

+1
source

If everything is log4j, you can edit log4j.properties and specify the lowest level of logging. It does not depend on Eclipse. Here's an introduction to log4j configuration:

and some more useful links:

I don’t know what your log4j configuration looks like, but you can, for example, specify something like this:

log4j.rootLogger=INFO, stdout 

if you have a stdout application.

0
source

Entering console output is not specific to eclipse.It depends on the configuration of log4J.

Although the console settings can be changed in eclipse.

In Eclipse, go to Windows - Preferences - Launch / Dialog - Console

In the Console, you can change the size of the console buffer, the maximum character width, etc.

A brief introduction to log4j

-1
source

Source: https://habr.com/ru/post/895496/


All Articles