1 package org.jzonic.jlo; 2 3 import org.jzonic.jlo.filter.LogFilter; 4 import org.jzonic.jlo.formatter.Formatter; 5 import org.jzonic.jlo.handler.Handler; 6 15 public class LogEvent { 16 17 private Handler handler; 18 private Formatter formatter; 19 private LogRecord logrecord; 20 private LogFilter logFilter; 21 22 public LogEvent(Handler handler, Formatter formatter, LogRecord logrecord) { 23 this(handler, formatter, logrecord,null); 24 } 25 32 public LogEvent(Handler handler, Formatter formatter, LogRecord logrecord,LogFilter filter) { 33 this.handler = handler; 34 this.formatter = formatter; 35 this.logrecord = logrecord; 36 this.logFilter = filter; 37 } 38 39 40 45 public Handler getHandler() { 46 return handler; 47 } 48 49 50 56 public Formatter getFormatter() { 57 return formatter; 58 } 59 60 61 66 public LogRecord getLogRecord() { 67 return logrecord; 68 } 69 72 public LogFilter getLogFilter() { 73 return logFilter; 74 } 75 76 } 77 | Popular Tags |