⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 simpleframewriter.java

📁 日志组件,添加到应用中,可在数据库中查询日志
💻 JAVA
字号:
package com.gisinfo.common.log.ui;

import com.gisinfo.common.log.LogWriter;
import com.gisinfo.common.log.LogEvent;
import com.gisinfo.common.log.LogException;
import com.gisinfo.common.log.LoggerConfig;

import java.util.List;

/**
 * 将Event信息输出到控制台,内容请参考具体LogEvent子类的toString方法
 */
public class SimpleFrameWriter extends LogWriter {
    private static LogFrame frame = new LogFrame();

    static {
        frame.init();
    }

    @Override
    protected void init() {

    }

    protected void writeLog(List<LogEvent> event) throws LogException {
        for (LogEvent e : event) {
            if (e != null)frame.addLog(e.toString());
        }
        frame.showMessage();
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -