In your case i would use a logging framework like log4j or logkit (based on log4j) there you can
easily set up logging into a file.
(You see log4j in all App Servers and most of the tools)
It is a jakarta framework which you can find
here There you can write to so called appenders (console, syslogd, file etc.)
Olli
[ June 06, 2003: Message edited by: Oliver Refle ]