protected function _log($textLine, $logPath=null)
    {
        // Return back to console also
        $this->_print($textLine);
        
        $logPath = ($logPath) ? $logPath : $this->logPath;

        if ($logPath)
            return file_put_contents($logPath, $this->_formatTextLine($textLine), FILE_APPEND);
        else
            return false;
    }
protected function _log($textLine, $logPath=null)
    {
        // Return back to console also
        $this->_print($textLine);
        
        $logPath = ($logPath) ? $logPath : $this->logPath;

        if ($logPath)
            return file_put_contents($logPath, $this->_formatTextLine($textLine), FILE_APPEND);
        else
            return false;
    }
protected function _log ( $ textLine , $ logPath = null ) { // Return back to console also $ this -> _print ( $ textLine ) ; $ logPath = ( $ logPath ) ? $ logPath : $ this -> logPath ; if ( $ logPath ) return file_put_contents ( $ logPath , $ this -> _formatTextLine ( $ textLine ) , FILE_APPEND ) ; else return false ; }
Log to file

@param string $textLine
@param string Specified log file path
@return integer|boolean The number of bytes that were written to the file, or FALSE on failure.
Log to file