zhangyoufu commented on pull request #608:
URL: https://github.com/apache/logging-log4j2/pull/608#issuecomment-990305306
You can't ask everybody to upgrade to 2.15 at once. The `formatMsgNoLookups`
option is available to log4j ≥ 2.10 only.
Thanks to LOG4J2-703, I think it's quite safe to remove
`org/apache/logging/log4j/core/lookup/JndiLookup.class` from `log4j-core-*.jar`
as a workaround. Just `zip -q -d log4j-core-*.jar
org/apache/logging/log4j/core/lookup/JndiLookup.class` to disable `${jndi:...}`
functionality completely.
I posted all log4j2-core jar with `JndiLookup.class` removed at
https://github.com/zhangyoufu/log4j2-without-jndi for reference. Local test
looks promising for me.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]