[ https://issues.apache.org/jira/browse/LOG4PHP-189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
George Cooksey updated LOG4PHP-189: ----------------------------------- Description: If a log file is not writeable, set default permissions in LoggerAppenderFile: {code} /** * Sets the file where the log output will go. * @param string $fileName * @deprecated Use setFile() instead. */ public function setFileName($fileName) { if (!is_writable($fileName)) { chmod($fileName, 0755); } $this->setFile($fileName); } {code} was: If a log file is not writeable, set default permissions in LoggerAppenderFile: {code} /** * Sets the file where the log output will go. * @param string $fileName * @deprecated Use setFile() instead. */ public function setFileName($fileName) { if (!is_writable($fileName)) { chmod($fileName, 0755); } $this->setFile($fileName); } {code} > Set default file permissions > ---------------------------- > > Key: LOG4PHP-189 > URL: https://issues.apache.org/jira/browse/LOG4PHP-189 > Project: Log4php > Issue Type: New Feature > Components: Code > Reporter: George Cooksey > Priority: Minor > > If a log file is not writeable, set default permissions in LoggerAppenderFile: > {code} > /** > * Sets the file where the log output will go. > * @param string $fileName > * @deprecated Use setFile() instead. > */ > public function setFileName($fileName) { > if (!is_writable($fileName)) { > chmod($fileName, 0755); > } > $this->setFile($fileName); > } > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira