Code:
<?php

require_once 'PHPUnit/Extensions/SeleniumTestCase.php';

class Example extends PHPUnit_Extensions_SeleniumTestCase
{
  function setUp()
  {
    $this->setBrowser("*chrome");
    $this->setBrowserUrl("http://www.google.co.in/");
  }

  function testMyTestCase()
  {
    $this->open("/");
    $this->type("q", "selenium");
    $this->click("btnG");
    $this->waitForPageToLoad("30000");
  }
}
?>

The above code generated using selenium IDE.
I have to write the log file to check whether www.google.co.in is reachable or not.
If the page opens, search for the word selenium and click the button.

How can I open the log file and validate the page and write to log file.