The Artima Developer Community
Sponsored Link

Approach 2 & multiple log files



This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Approach 2 & multiple log files

Posted by neil on 04 Aug 1998, 11:15 PM

In your finalizer article for JavaWorld you say:

"Given this design, you could write to multiple log files with 1 instance of this class"

Assuming you mean simultaneously (otherwise its true for all approches)
this is incorrect.

To do this you would need multiple fos, pw & logFileOpen
variables, and to include the filename in the writeToFile &
closeLogFile methods..


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us