📄 logthreadgroup.java
字号:
/****************************************************************************
* Package : com.ecSolutions.ecAppServer.server.util
* File : LogThreadGroup.java
* Create Date : 2007-7-20
* Author : Steven Chen
*
* Copyright(C) 2006 ecSolutions(shanghai) Co.,Limited.All Rights Reserved.
*
***************************************************************************/
package com.ecSolutions.ecAppServer.server.util;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* Log uncaught exception.
*
* @author Steven Chen
* @version $Id: LogThreadGroup.java,v 1.3 2007/07/26 05:17:55 stevenchen Exp $
*/
public class LogThreadGroup extends ThreadGroup {
private static final Log log = LogFactory.getLog(LogThreadGroup.class);
/**
* ecAppServer kernel thread group. All kernel threads should belong to this
* thread group or it's sub thread group.
*/
public static final ThreadGroup CINDY_THREAD_GROUP = new LogThreadGroup("Cindy");
public LogThreadGroup(String name) {
super(name);
}
public LogThreadGroup(ThreadGroup parent, String name) {
super(parent, name);
}
public void uncaughtException(Thread t, Throwable e) {
log.error(t, e);
super.uncaughtException(t, e);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -