There are 2 ways to configure Log4j in Spring using:
- a .properties file
- a .xml file
The configuration with the. xml file allows to take advantage of some aspects that can not be configured with the .properties file that is therefore regarded as obsolete.
This article will explain how to configure Log4j using the .xml file and the configuration with .properties file was treated in a previous article.