You need multiple copies of log4j.property and log4j.jar. For tomcat logging: put one log4j.jar in /common/lib, and log4j.properties in /common/classes. For your web app, put one log4j.jar in your WEB-INF/lib, and log4j.properties at wherever you want, just give the path when you configure it in the web app.
【在 m******t 的大作中提到】 : : You need multiple copies of log4j.property and log4j.jar. : For tomcat logging: put one log4j.jar in /common/lib, : and log4j.properties in /common/classes. : For your web app, put one log4j.jar in your WEB-INF/lib, : and log4j.properties at wherever you want, just give the path : when you configure it in the web app.