public class MdcPropertyFilter extends AbstractPropertyFilter
This filter retrieves the property value by the name from the log4j MDC.
Exammple configuration is:Constructor and Description |
---|
MdcPropertyFilter() |
Modifier and Type | Method and Description |
---|---|
protected String |
getProperty(org.apache.log4j.spi.LoggingEvent event,
String name)
Finds the property value by the name from the underlying environment.
|
decide, getName, getOnMatch, getOnMatchOption, getValue, setName, setOnMatch, setOnMatchOption, setValue
protected String getProperty(org.apache.log4j.spi.LoggingEvent event, String name)
AbstractPropertyFilter
getProperty
in class AbstractPropertyFilter
Copyright © 2012–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.