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.
- Overrides:
decide
in class Filter
- Since:
- 1.3
Copyright © 2000-2006 Apache Software Foundation.
Licensed under the Apache License, Version 2.0.