我使用的标准ConsoleHandler
,从java.util.logging
和由默认控制台输出被引导到错误流(即System.err
).
如何将控制台输出更改为输出流(即System.out
)?
我正在使用Eclipse Kepler和Tomcat 7,我只是在测试一个简单的JSP页面(test.jsp).它在浏览器中运行良好,但控制台中的所有文本都以红色显示.
我已经检查了Window/Preferences /(Run/Debug)属性和所有接缝都没问题.
控制台中的文本如下:
Jan 07, 2015 3:31:07 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance
in production environments was not found on the java.library.path:
C:\Java\jdk1.8.0_05\jre\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;...etc
Jan 07, 2015 3:31:08 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jan 07, 2015 3:31:08 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Jan 07, 2015 3:31:08 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1676 ms
Jan 07, 2015 3:31:08 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service …
Run Code Online (Sandbox Code Playgroud)