}
long ts = cal.getTimeInMillis();
// If this event is not between the start and end dates, then skip it.
if (null != dateFilter && !dateFilter.containsLong(ts))
return null;
Category c = Logger.getLogger(clazz);
Level l = Level.toLevel(level);
LoggingEvent event = new LoggingEvent(clazz, c, ts, l, message, threadName, (ThrowableInformation) null, (String) null, (LocationInfo) null,
(Map<?,?>) null);
// Check the log level filter
if (null != levelFilter && (levelFilter.decide(event) == Filter.DENY)) {