Tomcat STDOUT as Error in Eclipse

前端 未结 5 1958
栀梦
栀梦 2021-02-07 00:11

I am configuring Tomcat (5.5) server in Eclipse (3.3.2). Once I add Tomcat and start it, the output is printed in Eclipse Console. This output is printed in RED indicating its S

5条回答
  •  日久生厌
    2021-02-07 00:53

    Yep, the java.util.logging.ConsoleHandler publishes to System.err (and not to the System.out)...

    A workaround that does not involve coding, or just masking any possible error in black is to add to the VM arguments in the eclipse launch configuration:

     -Djava.util.logging.config.file="${workspace_loc}\Servers\Tomcat v8.5 Server at localhost-config\logging.properties"
    

    (adjust the server config folder accordingly)

    and create the logging.properties with:

    .level=WARNING
    

    This way only problems or potential problems will show in the console, but in red, the fitting color.

提交回复
热议问题