This page lists down quick steps to add log4j in the project. On high level, it involves:
- Add Jar in the build path
- Add property file in classpath
- Create static logger and use in your class
Add Jar in the build path
Add property file in classpath
Add following property file in project classpath.
Create static logger and use in your class
To log a message in any class, create a final static logger and use different logging levels.