/**
  * Retrieve the file handle for this FileAppender.
  *
  * @throws     <b>AgaviLoggingException</b> if file cannot be opened for
  *                                          appending.
  *
  * @return     resource The open file handle.
  *
  * @author     Bob Zoller <*****@*****.**>
  * @since      0.10.0
  */
 protected function getHandle()
 {
     $destination = $this->getParameter('destination');
     if (is_null($this->handle) && (!is_writable(dirname($destination)) || file_exists($destination) && !is_writable($destination))) {
         throw new AgaviLoggingException('Cannot open file "' . $destination . '", please check permissions on file or directory.');
     }
     return parent::getHandle();
 }