*/
public boolean evaluate(final LoggingEvent event, Map matches) {
//both util.logging and log4j contain 'info' - use the int values instead of equality
//info level set to the same value for both levels
Level eventLevel = event.getLevel();
boolean result = (level.toInt() == eventLevel.toInt());
if (result && matches != null) {
Set entries = (Set) matches.get(LoggingEventFieldResolver.LEVEL_FIELD);
if (entries == null) {
entries = new HashSet();
matches.put(LoggingEventFieldResolver.LEVEL_FIELD, entries);