About saving to different log files by using log4j.properties
posted 11 years ago
Basically, I have one Tomcat web server running 3 web apps. I'd like to log each app to different 3 log files. For example,
App1 to /pkg/logs/app1/App1.log App2 to /pkg/logs/app2/App2.log App3 to /pkg/logs/app3/App3.log
I'd tried to setup the log4j.properties file, but failed.
============================================ The log4j.properties file I designed is the following. The problem is that although I seperated the logging tasks, both test1 and test2 logging the same info; that is, I put
"test1" and "test2" are records by both test1.log and test2.log files.