Class PropertiesPlugin
java.lang.Object
org.apache.logging.log4j.core.config.PropertiesPlugin
@Plugin(name="properties",
category="Core",
printObject=true)
public final class PropertiesPlugin
extends Object
Handles properties defined in the configuration.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StrLookup
configureSubstitutor
(Property[] properties, Configuration config) Creates the Properties component.private static StrSubstitutor
Creates a newStrSubstitutor
which is configured with no lookups and does not handle defaults.(package private) static String
private static Property
-
Field Details
-
UNESCAPING_SUBSTITUTOR
-
-
Constructor Details
-
PropertiesPlugin
private PropertiesPlugin()
-
-
Method Details
-
configureSubstitutor
@PluginFactory public static StrLookup configureSubstitutor(@PluginElement("Properties") Property[] properties, @PluginConfiguration Configuration config) Creates the Properties component.- Parameters:
properties
- An array of Property elements.config
- The Configuration.- Returns:
- An Interpolator that includes the configuration properties.
-
unescape
-
unescape
-
createUnescapingSubstitutor
Creates a newStrSubstitutor
which is configured with no lookups and does not handle defaults. This allows it to unescape one level of escaped lookups without any further processing or removing replacing${ctx:foo:-default}
withdefault
.
-