[ACCEPTED]-Enabling logging in Spring-log4j

Accepted answer
Score: 16

In your properties file you should have


not 1


See this section in the Spring reference.

Score: 6

If you're using log4j2 using the common 4 XML configuration format, add a Logger in 3 your Loggers node:

<Logger name="org.springframework" level="trace"/>

Normally, the appenders 2 used will be the ones attached to the Root 1 entry.

More Related questions