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 Object
implements Arbiter
Condition that determines if the specified environment variable is set.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.apache.logging.log4j.core.config.arbiters.Arbiter
ELEMENT_TYPE
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if either the environment variable is defined (it has any value) or the property value matches the requested value.static EnvironmentArbiter.Builder
-
Method Details
-
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:
isCondition
in interfaceArbiter
-
newBuilder
-