All source code for the project can be found in the repository linked here: github.com/chenhaoxian…
The article directories
- 19.1.4 Log4j Configures and sends Log Mails
-
- The log configuration
- Mail sending packet
- The output form
19.1.4 Log4j Configures and sends Log Mails
The next step is to configure log4J logging. Go to Pom.xml first to add log4j’s dependencies, and of course, if you are using SLf4J, you need two more dependencies, as shown in Listing 19-5.
Listing 19-5: Log4J dependencies
<! Log4J Jar package -->
<dependency>
<groupId>
Copy the code