Package org.onehippo.cms7.logging.log4j
Class JndiPropertyFilter
- java.lang.Object
-
- org.apache.log4j.spi.Filter
-
- org.onehippo.cms7.logging.log4j.AbstractPropertyFilter
-
- org.onehippo.cms7.logging.log4j.JndiPropertyFilter
-
@Deprecated public class JndiPropertyFilter extends AbstractPropertyFilter
Deprecated.since the switch to Log4j2 in CMS v12. Instead useLookupFilter
which is log4j2 based.JndiPropertyFilter (Log4j1)This filter retrieves the property value by the name from the JNDI resources.
Exammple configuration is:
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONTAINER_PREFIX
Deprecated.JNDI prefix used in a J2EE container
-
Constructor Summary
Constructors Constructor Description JndiPropertyFilter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.-
Methods inherited from class org.onehippo.cms7.logging.log4j.AbstractPropertyFilter
decide, getName, getOnMatch, getOnMatchOption, getValue, setName, setOnMatch, setOnMatchOption, setValue
-
-
-
-
Field Detail
-
CONTAINER_PREFIX
public static final String CONTAINER_PREFIX
Deprecated.JNDI prefix used in a J2EE container- See Also:
- Constant Field Values
-
-
Method Detail
-
isResourceRef
public boolean isResourceRef()
Deprecated.Return whether the lookup occurs in a J2EE container.
-
setResourceRef
public void setResourceRef(boolean resourceRef)
Deprecated.Set whether the lookup occurs in a J2EE container, i.e. if the prefix "java:comp/env/" needs to be added if the key (JNDI name) doesn't already contain it. Default is "false". Note: Will only get applied if no other scheme (e.g. "java:") is given.- Parameters:
resourceRef
-
-
getProperty
protected String getProperty(org.apache.log4j.spi.LoggingEvent event, String name)
Deprecated.Description copied from class:AbstractPropertyFilter
Finds the property value by the name from the underlying environment.- Specified by:
getProperty
in classAbstractPropertyFilter
-
-