Hallo,
Die sollen wohl sicherstellen, dass keiner waehrend des
loggings in die Datei schreibt. (?)
Das die nach dem Logging noch vorhanden sind, ist ein Bug.
Hier aus dem Forum:
http://forum.java.sun.com/thread.jspa?forumID=57&thr…
Um den Bug sehen zu koennen, ist ein login erforderlich,
daher hier kurz…
"Synopsis FileHandler/Logger doesn’t delete lockfile
Category java:classes_util_logging
Reported Against 1.4
Release Fixed 1.5(tiger)
State Closed, fixed
A DESCRIPTION OF THE PROBLEM :
Once this Java program is finished running, there is a
lockfile called „LogDemo.txt.lck“ lying around, that wasn’t
there before, created (but not deleted) by the FileHandler
object."
Alternativ kannst du dir auch mal log4J anschauen.
http://logging.apache.org/log4j/docs/
Gruss, Patrick