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

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

        if (!empty($sFile)) {
            $this->oLog->file = $sFile;
        } else {
            $oDate            = Factory::factory('DateTime');
            $this->oLog->file = 'log-' . $oDate->format('Y-m-d') . '.php';
        }
    }
public function setFile($sFile = '')
    {
        //  Reset the log exists var so that line() checks again
        $this->oLog->exists = false;

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

        if (!empty($sFile)) {
            $this->oLog->file = $sFile;
        } else {
            $oDate            = Factory::factory('DateTime');
            $this->oLog->file = 'log-' . $oDate->format('Y-m-d') . '.php';
        }
    }
public function setFile ( $ sFile = '' ) { //  Reset the log exists var so that line() checks again $ this -> oLog -> exists = false ; // -------------------------------------------------------------------------- if ( ! empty ( $ sFile ) ) { $ this -> oLog -> file = $ sFile ; } else { $ oDate = Factory :: factory ( 'DateTime' ) ; $ this -> oLog -> file = 'log-' . $ oDate -> format ( 'Y-m-d' ) . '.php' ; } }
Set the filename which is being written to

@param string $sFile The file to write to
Set the filename which is being written to