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
Method Summary |
int |
decide(LoggingEvent event)
NOTE: This filter modifies logging events by adding properties to the event.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapFilter
public MapFilter()
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
Copyright 2000-2005 Apache Software Foundation.