[
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 $file
*/
public function setFile($file) {
if (is_file($file) && !is_writable($file)) {
chmod($file, 0755);
}
$this->setString('file', $file);
}
{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 $file
*/
public function setFile($file) {
if (!is_writable($file)) {
chmod($file, 0755);
}
$this->setString('file', $file);
}
{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 $file
> */
> public function setFile($file) {
> if (is_file($file) && !is_writable($file)) {
> chmod($file, 0755);
> }
> $this->setString('file', $file);
> }
> {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