> > > Steven Lau wrote:
> > > I'm doing some custom logging to a text file to make things easier and
> > > cheaper than to logging to a database.  The servlet would get the header
> > > information, session Id and so on and attemps to log it to a file.  The
> > > problem I have is I don't know how to insert it to a file instead of
> > > overwritting it.  Instead of having multiple entries, it will open the file
> > > and overwrite what's on it resulting in a file having only one log.

     Okay, this may seem like an odd question, but I've always been
overly careful about file IO, and I'm told java's file IO is pretty
slow to begin with.  Opening and closing the file for each log message
seems extreme to me.  Is this just my own neurosis or is it a
significant performance issue?

Steven J. Owens
[EMAIL PROTECTED]
[EMAIL PROTECTED]

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to