<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
import java.util.*;
public class SystemLoggerEvent extends EventObject {
private String msg;
private String line;
private int level;
private Exception exception;
public SystemLoggerEvent(
Object source, int level, String msg, Exception e, String line) {
super(source);
this.level = level;
this.msg = msg;
this.exception = e;
this.line = line;
}
public int getLevel() {
return level;
}
public String getMessage() {
return msg;
}
public Exception getException() {
return exception;
}
public String getPrintLine() {
return line;
}
}
LOG处理SystemLoggerEvent.java
最新推荐文章于 2021-02-13 17:16:44 发布
本文介绍了一个用于Java系统的自定义日志事件类(SystemLoggerEvent)的设计与实现细节。该类扩展了EventObject,用于记录不同级别的日志消息、异常信息及相应的代码行号,便于系统维护和调试。
3009

被折叠的 条评论
为什么被折叠?



