title: couldn't get lock for .log file in Java
body: <p>I am using Logger <strong>from Restlet framework</strong> with FileHandler to log my application in production mode. However, I always get the Excetption "Unable to create a FileHandler for the Logger: Couldn't get lock for test.log". How can I solve this?
  Here is the code:</p>
  
  <pre><code>FileHandler aFileHandler = new FileHandler("test.log");
  
  Formatter aFormatter = new SimpleFormatter();
  
  aFileHandler.setFormatter(aFormatter);
  
  aLogger.setLevel(Level.ALL);
  
  aLogger.addHandler(aFileHandler);
  </code></pre>
  
  <p>This log file is used by several by more than one process at the same time.</p>
  
  <p>And except the .log file, a lot of other files like ".log.1, .log.2 ....." have been created. Does anybody know why?</p>