I am running a servlet on a jakarta-tomcat (apache) server which uses log4j and while the servlet is running I am unable to view the log file because of a sharing violation: "The document d:\.....\logfile is in use by another application and cannot be accessed." I have to shutdown the server in order to view the logfile, I think this is a bit much. I'm guessing the file isn't being closed after the appenders write to it, can this be fixed or is it necessary for log4j? Thank you very much for your help, I have been very satisfied thus far with the flexibility of log4j. --matt
Matt, Sorry for not replying earlier. I have been thinking about this problem. This is clearly a OS related problem. Which OS is this by the way? Openning/closing a file with each append would be very slow. Moreover, it wouldn't solve the problem because while the viewer had the log file open logging would fail. Not a good thing. I suggest you investigate how your OS handles opens files and whether there is not a way to allow simultaneous opens of the same file. Hope this helps, Ceki
Is this problem still bothering you?
*** Bug 61936 has been marked as a duplicate of this bug. ***