src/Common/Service/Logger.php
public function setDir($sDir = '')
    {
        //  Reset the log exists var so that line() checks again
        $this->oLog->exists = false;

        // --------------------------------------------------------------------------

        if (!empty($sDir) && substr($sDir, 0, 1) === '/') {
            $this->oLog->dir = $sDir;
        } elseif (!empty($sDir)) {
            $this->oLog->dir = DEPLOY_LOG_DIR . $sDir;
        } else {
            $this->oLog->dir = DEPLOY_LOG_DIR;
        }
    }
public function setDir($sDir = '')
    {
        //  Reset the log exists var so that line() checks again
        $this->oLog->exists = false;

        // --------------------------------------------------------------------------

        if (!empty($sDir) && substr($sDir, 0, 1) === '/') {
            $this->oLog->dir = $sDir;
        } elseif (!empty($sDir)) {
            $this->oLog->dir = DEPLOY_LOG_DIR . $sDir;
        } else {
            $this->oLog->dir = DEPLOY_LOG_DIR;
        }
    }
public function setDir ( $ sDir = '' ) { //  Reset the log exists var so that line() checks again $ this -> oLog -> exists = false ; // -------------------------------------------------------------------------- if ( ! empty ( $ sDir ) && substr ( $ sDir , 0 , 1 ) === '/' ) { $ this -> oLog -> dir = $ sDir ; } elseif ( ! empty ( $ sDir ) ) { $ this -> oLog -> dir = DEPLOY_LOG_DIR . $ sDir ; } else { $ this -> oLog -> dir = DEPLOY_LOG_DIR ; } }
Set the log directory which is being written to

@param string $sDir The directory to write to
Set the log directory which is being written to