Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Logging API/Lock Files  RSS feed

Buzz Andersen
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!