Merge pull request #645 from drzax/log-writer

BUG Attempt to create log path before writing file
This commit is contained in:
Ingo Schommer 2012-07-17 02:25:24 -07:00
commit 373c25d56d

View File

@ -58,6 +58,7 @@ class SS_LogFileWriter extends Zend_Log_Writer_Abstract {
$this->setFormatter($formatter);
}
$message = $this->_formatter->format($event);
if(!file_exists(dirname($this->path))) mkdir(dirname($this->path), 0755, true);
error_log($message, $this->messageType, $this->path, $this->extraHeaders);
}