How to configure log4j logging into your web project?
Step 1:
Add below entry into your web.xml file
Step 2:
Add log4j.xml file into direct WEB-INF folder of your project.
Sample log4j.xml is given below:
Step 3:
Add LOGGER into your code by traditional way (logger in all methods) or new way as AOP (Spring Point-Cut).
static final Logger LOGGER = Logger.getLogger(SpringFactory.class);
Hurreeeeeeeeeeeeeeeeeeeeeeeeeeeeeee, you are ready to use log4j configration.
Best Of Luck.


