Uploaded image for project: 'Log4php'
  1. Log4php
  2. LOG4PHP-189

Set default file permissions

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Code
    • None

    Description

      If a log file is not writeable, set default permissions in LoggerAppenderFile:

      /**
       * 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);
      }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gcooksey George Cooksey
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: