Skip to content

Conversation

fxshlein
Copy link

The documentation currently says FORMAT_MESSAGES_PATTERN_DISABLE_LOOKUPS is the correct environment variable to disable the message pattern lookups, however after testing, it seems that LOG4J_FORMAT_MSG_NO_LOOKUPS is actually correct. (It also fits in with the other environment variables)

Even though this option is deprecated in the newest version, this could make people wrongfully think FORMAT_MESSAGES_PATTERN_DISABLE_LOOKUPS works on older deployments where the log4j version is not able to be updated.

@vy vy merged commit 3bd68c1 into apache:master Dec 10, 2021
@vy
Copy link
Member

vy commented Dec 10, 2021

Thanks so much for the heads up @fxshlein! Please note that this correction is against master, which is not released yet. All Log4j 2 releases & websites are derived from release-2.x branch, where this typo doesn't occur. (Correct me if I am wrong.)

@fxshlein
Copy link
Author

I was going off this: https://logging.apache.org/log4j/2.x/manual/configuration.html

Although its completely removed there now. This morning it was still there 😉

Kylepoops added a commit to Kylepoops/HMCL that referenced this pull request Dec 11, 2021
huanghongxun pushed a commit to HMCL-dev/HMCL that referenced this pull request Dec 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants