public function writeToLog($message, $addbreak = true)
    {
        if (file_exists($this->_log_path) && !is_writable($this->_log_path)) {
            $this->pushToLog('Could not write to Log. It is not readable.');
            return false;
        }

        $permissions = class_exists('Symphony', false) ? Symphony::Configuration()->get('write_mode', 'file') : '0664';

        return General::writeFile($this->_log_path, $message . ($addbreak ? PHP_EOL : ''), $permissions, 'a+');
    }
public function writeToLog($message, $addbreak = true)
    {
        if (file_exists($this->_log_path) && !is_writable($this->_log_path)) {
            $this->pushToLog('Could not write to Log. It is not readable.');
            return false;
        }

        $permissions = class_exists('Symphony', false) ? Symphony::Configuration()->get('write_mode', 'file') : '0664';

        return General::writeFile($this->_log_path, $message . ($addbreak ? PHP_EOL : ''), $permissions, 'a+');
    }
public function writeToLog ( $ message , $ addbreak = true ) { if ( file_exists ( $ this -> _log_path ) && ! is_writable ( $ this -> _log_path ) ) { $ this -> pushToLog ( 'Could not write to Log. It is not readable.' ) ; return false ; } $ permissions = class_exists ( 'Symphony' , false ) ? Symphony :: Configuration ( ) -> get ( 'write_mode' , 'file' ) : '0664' ; return General :: writeFile ( $ this -> _log_path , $ message . ( $ addbreak ? PHP_EOL : '' ) , $ permissions , 'a+' ) ; }
This function will write the given message to the log file. Messages will be appended
the existing log file.

@param string $message
The message to add to the Log
@param boolean $addbreak
To be used in conjunction with `$writeToLog`, this will add a line break
before writing this message in the log file. Defaults to true.
@return boolean
Returns true if the message was written successfully, false otherwise
This function will write the given message to the log file . Messages will be appended the existing log file .