Meaningless Drivel is fun!
The moose likes Other Open Source Projects and the fly likes About saving to different log files by using Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "About saving to different log files by using" Watch "About saving to different log files by using" New topic

About saving to different log files by using

da shan

Joined: Oct 15, 2004
Posts: 2

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 file, but failed.

The 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');'test2');

"test1" and "test2" are records by both test1.log and test2.log files.

log4j.rootLogger = INFO, test1, test2




Any helps are appreciated very much,
da Shan
Robert Stuart

Joined: Jan 09, 2003
Posts: 10
Try adding this above each respective appender

# above the log for app1 - test1 is name of appender DEBUG, test1 DEBUG, test2

the idea is to provide the appender with the file structure of the classes each appender is to log.

Hope this helps
I agree. Here's the link:
subject: About saving to different log files by using
jQuery in Action, 3rd edition