Actually, it doesn't create it only in the /bin directory -
it will create the file relative to wherever you start tomcat
(e.g. $/etc /jakarta/jakarta-tomcat-3.2.1/bin/tomcat start
would cause it to create your output file in the /etc directory)
At least, this has been my findings. What I'm doing to
make it work like I want to is to set the path and file name
in <init-param> and then look up those values in init()
If you would like to see the stuff, let me know.
/bill
From: Christoph Fischer <[EMAIL PROTECTED]>
Sent: Tue, 02 Jan 2001 14:57:29 +0100
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Subject: Logfile root-directory-setting
Hello,
I have created my own log file via setting the System.setErr with a
new
FileOutputStream.
� �FileOutputStream fout = new FileOutputStream("mylog.txt", true);
� �System.setErr(new PrintStream(fout));
Giving it only the file-name, the log-file will be created in the
tmocat/bin directory.
Is there any configuration file where I can preset this to the
tmocat/logs-directory?
(it works with "../logs/mylog.txt" but thats not what I want)
Thanks
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]