[
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:
Christian Hammers has proposed to add the option of defining log file
permissions as part of configuration:
http://www.nabble.com/Adding-umask-chmod-to-FileAppender--tt11748228.html#a11748228
> 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