Skip to content

Commit 6bd790a

Browse files
LOG4J2-2726: Remove JVM argument
1 parent 2f79c39 commit 6bd790a

File tree

3 files changed

+13
-78
lines changed

3 files changed

+13
-78
lines changed

log4j-core/src/main/java/org/apache/logging/log4j/core/lookup/Interpolator.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ public class Interpolator extends AbstractConfigurationAwareLookup implements Lo
5353

5454
private static final String LOOKUP_KEY_JNDI = "jndi";
5555

56-
private static final String LOOKUP_KEY_JVMRUNARGS = "jvmrunargs";
57-
5856
private static final Logger LOGGER = StatusLogger.getLogger();
5957

6058
private final Map<String, StrLookup> strLookupMap = new HashMap<>();
@@ -126,11 +124,6 @@ private void handleError(final String lookupKey, final Throwable t) {
126124
+ " JNDI string lookups will not be available, continuing configuration. Ignoring "
127125
+ t);
128126
break;
129-
case LOOKUP_KEY_JVMRUNARGS:
130-
// java.lang.VerifyError: org/apache/logging/log4j/core/lookup/JmxRuntimeInputArgumentsLookup
131-
LOGGER.warn("JMX runtime input lookup class is not available because this JRE does not support JMX. "
132-
+ "JMX lookups will not be available, continuing configuration. Ignoring " + t);
133-
break;
134127
case LOOKUP_KEY_WEB:
135128
LOGGER.info("Log4j appears to be running in a Servlet environment, but there's no log4j-web module "
136129
+ "available. If you want better web container support, please add the log4j-web JAR to your "

log4j-core/src/main/java/org/apache/logging/log4j/core/lookup/JmxRuntimeInputArgumentsLookup.java

Lines changed: 0 additions & 71 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<entry xmlns="https://logging.apache.org/xml/ns"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="
5+
https://logging.apache.org/xml/ns
6+
https://logging.apache.org/xml/ns/log4j-changelog-0.xsd"
7+
type="removed">
8+
<issue id="3874" link="https://github.com/apache/logging-log4j2/pull/3874"/>
9+
10+
<description format="asciidoc">
11+
Remove the `jvmrunargs` lookup.
12+
</description>
13+
</entry>

0 commit comments

Comments
 (0)