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 .properties file and the configuration with .xml file will be treated in a subsequent article. Continue reading “Basic configuration of Log4j in Spring using a .properties file”