tomcat日志红色问题解决办法
来源:互联网 发布:红马甲炒股软件 编辑:程序博客网 时间:2024/09/21 08:56
tomcat日志红色问题解决办法
在eclipse中启动tomcat时,在console中输出的日志信息为红色,但其实程序并没有错误。
原因是:tomcat默认的日志输出按jdk中的System.err来输出,而System.err在eclipse中,以红色显示。
解决办法:
Eclipse 中 System.err 的显示颜色可以通过 Window --> Preference --> Run/Debug --> Console 的 Standard Error text color 进行更改。
JDK 日志具体的输出处理类需要在 %JRE_HOME%/lib/logging.properties 配置的 handlers 指定,可以使用 System.out 重写一个 java.util.logging.ConsoleHandler 配置进去就可以了。
原因是:tomcat默认的日志输出按jdk中的System.err来输出,而System.err在eclipse中,以红色显示。
解决办法:
Eclipse 中 System.err 的显示颜色可以通过 Window --> Preference --> Run/Debug --> Console 的 Standard Error text color 进行更改。
JDK 日志具体的输出处理类需要在 %JRE_HOME%/lib/logging.properties 配置的 handlers 指定,可以使用 System.out 重写一个 java.util.logging.ConsoleHandler 配置进去就可以了。
- tomcat日志红色问题解决办法
- tomcat闪退问题解决办法
- Eclipse启动tomcat 打印红色颜色日志
- tomcat日志过大问题解决
- 有关tomcat的一些问题解决办法
- Tomcat无法shutdown进程问题解决办法
- Tomcat无法shutdown进程问题解决办法
- Tomcat无法shutdown进程问题解决办法
- Eclipse 3.4 + Tomcat Plugin + Tomcat 6 "DevLoader" 问题解决办法
- tomcat启动后tomcat-users.xml丢失问题解决办法
- tomcat控制台日志打印中文乱码问题解决
- tomcat+log4j控制台日志乱码问题解决
- Websphere6.1.x不打印Log4j日志问题解决办法
- sqlserver数据库事物日志已满的问题解决办法
- Tomcat 配置多个WEB应用的问题解决办法
- 配置tomcat到系统服务方法及一般问题解决办法
- 同一个tomcat应用,不同二级域名session共享问题解决办法
- eclipse平台 android项目前显示红色叉号 android level-19 4.4平台导入项目 问题解决办法
- android内核编译方法
- ubuntu配置软件镜像源(提升下载速度)
- 性能测试分析工具-linux top命令详解
- 递推-------fibnacci数列
- Android Web App官方文档翻译第五章:最佳实践
- tomcat日志红色问题解决办法
- 利用函数输出型号图
- SQLServer:定时作业的设置方法
- magento翻译的各种用法
- linux系统内核UDP丢包原因分析
- 自动更新
- 第十三周上机任务--一万以内的所有素数
- OK6410 UBOOT移植(8)
- 基于内容的图像检索概述