Is it enough to upgrade
log4j-coreandlog4j-apito 2.15.0 but leavelog4j-slf4j-impl, which is a binding library, to 2.14.1, given thatmvn dependency:treesuggests thatlog4j-slf4j-impl:2.14.1is depending onlog4j-core:2.15.0andlog4j-api:2.15.0and the logging works appropriately? I am asking this because at the moment of havoc yesterday,log4j-slf4j-implstill haven't had2.15.0released.Has the fix in 2.15.0 included a change to
LOG4J_FORMAT_MSG_NO_LOOKUPSbeing set totrue? Running the following unit test suggests that the variable is stillfalsewith 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);
}