There are substantial differences in the configuration syntax between Log4j 1.x and 2.x. Here are some basic examples showcasing some of these differences. For more detailed information, see the official Log4j 2.x documentation:
Note: When trying to configure Log4j 2.x the
log4j.properties file serves no purpose anymore, and is
replaced by the log4j2.properties file instead.