simpleframewriter.java.svn-base
来自「日志组件,添加到应用中,可在数据库中查询日志」· SVN-BASE 代码 · 共 32 行
SVN-BASE
32 行
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 + =
减小字号Ctrl + -
显示快捷键?