LookupFilter
which is log4j2 based.@Deprecated public class JndiPropertyFilter extends AbstractPropertyFilter
This filter retrieves the property value by the name from the JNDI resources.
Exammple configuration is:Modifier and Type | Field and Description |
---|---|
static String |
CONTAINER_PREFIX
Deprecated.
JNDI prefix used in a J2EE container
|
Constructor and Description |
---|
JndiPropertyFilter()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getProperty(org.apache.log4j.spi.LoggingEvent event,
String name)
Deprecated.
Finds the property value by the name from the underlying environment.
|
boolean |
isResourceRef()
Deprecated.
Return whether the lookup occurs in a J2EE container.
|
void |
setResourceRef(boolean resourceRef)
Deprecated.
Set whether the lookup occurs in a J2EE container, i.e.
|
decide, getName, getOnMatch, getOnMatchOption, getValue, setName, setOnMatch, setOnMatchOption, setValue
public static final String CONTAINER_PREFIX
public boolean isResourceRef()
public void setResourceRef(boolean resourceRef)
resourceRef
- protected String getProperty(org.apache.log4j.spi.LoggingEvent event, String name)
AbstractPropertyFilter
getProperty
in class AbstractPropertyFilter
Copyright © 2012–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.