Is it enough to upgrade
log4j-core
andlog4j-api
to 2.15.0 but leavelog4j-slf4j-impl
, which is a binding library, to 2.14.1, given thatmvn dependency:tree
suggests thatlog4j-slf4j-impl:2.14.1
is depending onlog4j-core:2.15.0
andlog4j-api:2.15.0
and the logging works appropriately? I am asking this because at the moment of havoc yesterday,log4j-slf4j-impl
still haven't had2.15.0
released.Has the fix in 2.15.0 included a change to
LOG4J_FORMAT_MSG_NO_LOOKUPS
being set totrue
? Running the following unit test suggests that the variable is stillfalse
with all of the dependencies in the 1st question being set to version2.15.0
:
import org.apache.logging.log4j.util.PropertiesUtil;
@Test
public void testLog4j() {
PropertiesUtil props = PropertiesUtil.getProperties();
boolean val = props.getBooleanProperty("LOG4J_FORMAT_MSG_NO_LOOKUPS");
System.out.println(val);
}