Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
class NamedInstantPatternTest {

@ParameterizedTest
@EnumSource(NamedInstantPattern.class)
@EnumSource(
value = NamedInstantPattern.class,
names = {"ISO8601_OFFSET_DATE_TIME_HH"},
mode = EnumSource.Mode.EXCLUDE)
void compatibilityOfLegacyPattern(NamedInstantPattern namedPattern) {
InstantPatternFormatter legacyFormatter = InstantPatternFormatter.newBuilder()
.setPattern(namedPattern.getLegacyPattern())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ public class Interpolator extends AbstractConfigurationAwareLookup implements Lo

private static final String LOOKUP_KEY_JNDI = "jndi";

private static final String LOOKUP_KEY_JVMRUNARGS = "jvmrunargs";

private static final Logger LOGGER = StatusLogger.getLogger();

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

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@
* {@linkplain org.apache.logging.log4j.core.config.plugins.Plugin#category() plugin category}
* {@link org.apache.logging.log4j.core.lookup.StrLookup#CATEGORY Lookup}.
*/
@BaselineIgnore("2.26.0")
@Export
@Version("2.24.1")
@Version("2.26.0")
package org.apache.logging.log4j.core.lookup;

import aQute.bnd.annotation.baseline.BaselineIgnore;
import org.osgi.annotation.bundle.Export;
import org.osgi.annotation.versioning.Version;
13 changes: 13 additions & 0 deletions src/changelog/.2.x.x/3874_remove_jvmrunargs_lookup.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="https://logging.apache.org/xml/ns"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
https://logging.apache.org/xml/ns
https://logging.apache.org/xml/ns/log4j-changelog-0.xsd"
type="removed">
<issue id="3874" link="https://github.com/apache/logging-log4j2/pull/3874"/>

<description format="asciidoc">
Remove the `jvmrunargs` lookup.
</description>
</entry>
Loading