Unfortunately 3.2 doesn't have anything like that.You need to write your
code and log the info.Here's a piece of code that can do it:
String outputFileName = System.getProperty("user.dir")+File.separatorChar+
"logFile.txt";
FileWriter fw = new FileWriter(outputFileName,true);
Date myDate = new Date();
String myString = DateFormat.getDateTimeInstance().format(myDate)+ " ";
The above lines create a file (logfile.txt)in the append mode,gets the
current syetem date/time.
In the "catch" block add the lines
catch (Exception e){
fw.write(myString+e+System.getProperty("line.separator"));
fw.close();
}
These lines log the exception to the logfile using the file writer that we
created above along with the date/time stamp
It works very well for me
Ram
>From: Carsten Elshoff <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Logging customizing
>Date: Thu, 11 Jan 2001 09:22:00 +0100
>
>Hi,
>
>has anybody had some success in customizing those log files produces by
>tomcat by default? As far as I know there three of them (tomcat.err,
>tomcat.out, tomcat.log). I found some sample config in the server.xml
>where there set something like path= .... and customOutput=yes|no. One
>thing I have been missing so far is the point where one can tell tomcat
>what to customize? Specifically, I'd like to add at least a timestamp to
>the begining of each line that's being logged. Do I have to set this
>format somewhere else?
>
>Any help is greatly appreciated! Thanks!
>
>Carsten Elshoff
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]