Log4j 1.3alpha-6

org.apache.log4j.filter
Class MapFilter

java.lang.Object
  |
  +--org.apache.log4j.spi.ComponentBase
        |
        +--org.apache.log4j.spi.Filter
              |
              +--org.apache.log4j.filter.MapFilter
All Implemented Interfaces:
Component, OptionHandler

public class MapFilter
extends Filter


Field Summary
 
Fields inherited from class org.apache.log4j.spi.Filter
ACCEPT, DENY, NEUTRAL
 
Fields inherited from class org.apache.log4j.spi.ComponentBase
repository
 
Constructor Summary
MapFilter()
           
 
Method Summary
 int decide(LoggingEvent event)
          NOTE: This filter modifies logging events by adding properties to the event.
 
Methods inherited from class org.apache.log4j.spi.Filter
activateOptions, getNext, setNext
 
Methods inherited from class org.apache.log4j.spi.ComponentBase
getLogger, setLoggerRepository
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapFilter

public MapFilter()
Method Detail

decide

public int decide(LoggingEvent event)
NOTE: This filter modifies logging events by adding properties to the event. The object passed in as the event message must implement java.util.Map. This filter converts the event message (a Map) into properties on the event. If the map holds an entry with a key of "message", the value of the entry is used as the rendered message.

Specified by:
decide in class Filter
Parameters:
event - The LoggingEvent to decide upon.
Since:
1.3

Log4j 1.3alpha-6

Copyright 2000-2005 Apache Software Foundation.