tomcat 日志 java.util.logging.Logger使用 (五)
2012-12-20 22:57
1096 查看
今天将代码部署到 ubuntu上面
logging.properties文件中如果该属性设置为
则在代码执行的过程中会报如下异常: 原因未知 (一般设置成INFO或以上的级别,便不会报此问题)
报异常的地方都是在
==============================================
logging.properties文件中如果该属性设置为
.level= ALL
则在代码执行的过程中会报如下异常: 原因未知 (一般设置成INFO或以上的级别,便不会报此问题)
报异常的地方都是在
public String format(LogRecord record) { StringBuffer sb = new StringBuffer(); //here
==============================================
Can't set level for java.util.logging.ConsoleHandler Exception in thread "http-bio-8088-exec-3" java.lang.ClassCircularityError: java/lang/StringBuffer at coffee.common.log.FileFormatter.format(FileFormatter.java:44) at java.util.logging.StreamHandler.publish(StreamHandler.java:179) at java.util.logging.FileHandler.publish(FileHandler.java:555) at java.util.logging.Logger.log(Logger.java:481) at java.util.logging.Logger.doLog(Logger.java:503) at java.util.logging.Logger.logp(Logger.java:619) at org.apache.juli.logging.DirectJDKLog.log(DirectJDKLog.java:183) at org.apache.juli.logging.DirectJDKLog.trace(DirectJDKLog.java:116) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Exception in thread "http-bio-8088-exec-2" java.lang.ClassCircularityError: java/lang/StringBuffer at coffee.common.log.ConsoleFormatter.format(ConsoleFormatter.java:33) at java.util.logging.StreamHandler.publish(StreamHandler.java:179) at java.util.logging.ConsoleHandler.publish(ConsoleHandler.java:88) at java.util.logging.Logger.log(Logger.java:481) at java.util.logging.Logger.doLog(Logger.java:503) at java.util.logging.Logger.logp(Logger.java:703) at org.apache.juli.logging.DirectJDKLog.log(DirectJDKLog.java:185) at org.apache.juli.logging.DirectJDKLog.error(DirectJDKLog.java:151) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:649) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Exception in thread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" java.lang.ClassCircularityError: java/lang/StringBuffer at coffee.common.log.ConsoleFormatter.format(ConsoleFormatter.java:33) at java.util.logging.StreamHandler.publish(StreamHandler.java:179) at java.util.logging.ConsoleHandler.publish(ConsoleHandler.java:88) at java.util.logging.Logger.log(Logger.java:481) at java.util.logging.Logger.doLog(Logger.java:503) at java.util.logging.Logger.logp(Logger.java:703) at org.apache.juli.logging.DirectJDKLog.log(DirectJDKLog.java:185) at org.apache.juli.logging.DirectJDKLog.error(DirectJDKLog.java:151) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1533) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519) at java.lang.Thread.run(Thread.java:662)
相关文章推荐
- tomcat 日志 java.util.logging.Logger使用 (二)
- tomcat 日志 java.util.logging.Logger使用 (一)
- tomcat 日志 java.util.logging.Logger使用 (三)
- tomcat 日志 java.util.logging.Logger使用 (四)
- 【java日志】java.util.logging.Logger使用详解
- 如何使用java.util.logging中的Logger来记录日志
- 2006-05-30 学习使用java.util.logging.Logger类(纪念屈原吧)
- java.util.logging.Logger使用详解
- storm中使用log出现java.lang.RuntimeException: java.io.NotSerializableException: java.util.logging.Logger
- java.util.logging.Logger使用详解
- 【java】java自带的java.util.logging.Logger日志功能
- java.util.logging.Logger使用详解
- java.util.logging.Logger 使用例程
- java.util.logging.Logger使用详解
- java.util.logging日志功能使用快速入门
- [转] java.util.logging日志功能使用快速入门
- java.util.logging.Logger使用详解
- java.util.logging.Logger使用详解
- java.util.logging.Logger使用详解
- java.util.logging.Logger使用详解