This is an automated email from the ASF dual-hosted git repository.
pkarwasz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/main by this push:
new 20374dc8f9 Update EnvironmentArbiter to 3.x
20374dc8f9 is described below
commit 20374dc8f9440d9c1f96c7cccac0ef80d4e8b803
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Tue Aug 1 22:48:04 2023 +0200
Update EnvironmentArbiter to 3.x
---
.../logging/log4j/core/config/arbiters/EnvironmentArbiter.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git
a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/arbiters/EnvironmentArbiter.java
b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/arbiters/EnvironmentArbiter.java
index 36c9c701b3..98f934a88b 100644
---
a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/arbiters/EnvironmentArbiter.java
+++
b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/arbiters/EnvironmentArbiter.java
@@ -16,16 +16,16 @@
*/
package org.apache.logging.log4j.core.config.arbiters;
-import org.apache.logging.log4j.core.config.Node;
-import org.apache.logging.log4j.core.config.plugins.Plugin;
import org.apache.logging.log4j.core.config.plugins.PluginBuilderAttribute;
import org.apache.logging.log4j.core.config.plugins.PluginBuilderFactory;
+import org.apache.logging.log4j.plugins.Configurable;
+import org.apache.logging.log4j.plugins.Plugin;
/**
* Condition that determines if the specified environment variable is set.
*/
-@Plugin(name = "EnvironmentArbiter", category = Node.CATEGORY, elementType =
Arbiter.ELEMENT_TYPE,
- deferChildren = true, printObject = true)
+@Configurable(elementType = Arbiter.ELEMENT_TYPE, printObject = true,
deferChildren = true)
+@Plugin
public class EnvironmentArbiter implements Arbiter {
private final String propertyName;