|
|
@ -6,6 +6,7 @@ import com.fr.design.gui.icontainer.UIScrollPane; |
|
|
|
import com.fr.design.gui.imenu.UIMenuItem; |
|
|
|
import com.fr.design.gui.imenu.UIMenuItem; |
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
|
|
|
|
import com.fr.general.FRLogLevel; |
|
|
|
import com.fr.general.GeneralContext; |
|
|
|
import com.fr.general.GeneralContext; |
|
|
|
import com.fr.general.Inter; |
|
|
|
import com.fr.general.Inter; |
|
|
|
import com.fr.general.LogRecordTime; |
|
|
|
import com.fr.general.LogRecordTime; |
|
|
@ -119,7 +120,8 @@ public class DesignerLogHandler { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
JPopupMenu jPopupMenu = new JPopupMenu(); |
|
|
|
JPopupMenu jPopupMenu = new JPopupMenu(); |
|
|
|
int logLevelInt = Log4jConfig.getInstance().getRootLevel().toInt(); |
|
|
|
//这里把log4j的日志级别也转成java级别,可以进行比对
|
|
|
|
|
|
|
|
int logLevelInt = FRLogLevel.convertLog4jToJava(Log4jConfig.getInstance().getRootLevel()).intValue(); |
|
|
|
if (logLevelInt <= INFO_INT) { |
|
|
|
if (logLevelInt <= INFO_INT) { |
|
|
|
jPopupMenu.add(showInfo); |
|
|
|
jPopupMenu.add(showInfo); |
|
|
|
jPopupMenu.add(showError); |
|
|
|
jPopupMenu.add(showError); |
|
|
|