require_once 'PHPUnit/Extensions/SeleniumTestCase.php';

class Example extends PHPUnit_Extensions_SeleniumTestCase
  function setUp()

  function testMyTestCase()
    $this->type("q", "selenium");

The above code generated using selenium IDE.
I have to write the log file to check whether 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.