Technologies used in this article :
- Hello World Example of Simple Logging Facade for Java or SLF4J
- Configure Simple Logging Facade for Java (SLF4J) with log4j as underlying logging framework
1. Create a Java Project and a Class with 'main' method
Create a java project ('Log4jMailNotifer') and a class ('Log4jMailNotiferTest') with 'main' method
2. Copy jars
Create a 'lib' folder inside the project folder and copy the following jars 'slf4j-api-1.7.1.jar', 'slf4j-log4j12-1.7.1.jar', 'log4j-1.2.17.jar' and 'mail-1.4.jar' to the newly created 'lib' folder. These jars are already included in the full source code provided with this tutorial in the 'Download Source Code' section.