posted 14 years ago
I've just started experimenting with the logging API and I've noticed kind of an annoying thing: when I use a FileHandler, it seems to create lock files it never deletes. They all have the same name as the log file, with ".lck" on the end. I have tried adding a shutdown hook to my program that closes the Logger in an attempt to get rid of them, but that doesn't seem to make any difference. Does anyone know how I can prevent these from cluttering things up without going to the extent of adding a shutdown hook that deletes them?