Class EnvironmentArbiter
- java.lang.Object
-
- org.apache.logging.log4j.core.config.arbiters.EnvironmentArbiter
-
- All Implemented Interfaces:
Arbiter
@Plugin(name="EnvironmentArbiter", category="Core", elementType="Arbiter", deferChildren=true, printObject=true) public class EnvironmentArbiter extends java.lang.Object implements Arbiter
Condition that determines if the specified environment variable is set.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEnvironmentArbiter.Builder
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringpropertyNameprivate java.lang.StringpropertyValue-
Fields inherited from interface org.apache.logging.log4j.core.config.arbiters.Arbiter
ELEMENT_TYPE
-
-
Constructor Summary
Constructors Modifier Constructor Description privateEnvironmentArbiter(java.lang.String propertyName, java.lang.String propertyValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisCondition()Returns true if either the environment variable is defined (it has any value) or the property value matches the requested value.static EnvironmentArbiter.BuildernewBuilder()
-
-
-
Method Detail
-
isCondition
public boolean isCondition()
Returns true if either the environment variable is defined (it has any value) or the property value matches the requested value.- Specified by:
isConditionin interfaceArbiter
-
newBuilder
@PluginBuilderFactory public static EnvironmentArbiter.Builder newBuilder()
-
-