Error while upgrading to log4j2

Hi,

I am upgrading Hippo from the version 11.2.11 to 12.6.1-1.
After following the steps to upgrade the log4j to log4j2, when I rebuild the project I get the bellow error:

ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console. Set system property ‘org.apache.logging.log4j.simplelog.StatusLogger.level’ to TRACE to show Log4j2 internal initialization logging.

Any idea how I can fix this?

1 Like

" No log4j2 configuration file found"

check if you have log4j2.xml file in right place (normally conf/log4j2-dev.xml )

The log4j2-dev.xml is on the conf folder. To note the error is shown on the Tests execution when running a mvn clean verify.

This issue is fixed.
The solution was to add the missing “hippo-cms-test” dependency in one of the plugins pom.xml

Testcases don’t use above file (it is meant of local cargo profile only).
You need to add log4j2.xml file into test resources folder yourself.

1 Like

Hi machak.

You were right, after adding the configuration file to the resource folder the logs were printed correctly.

Thanks.