<?php
    
/**
    * o------------------------------------------------------------------------------o
    * | This package is licensed under the Phpguru license 2008. A quick summary is  |
    * | that the code is free to use for non-commercial purposes. For commercial     |
    * | purposes of any kind there is a small license fee to pay. You can read more  |
    * | at:                                                                          |
    * |                  http://www.phpguru.org/static/license.html                  |
    * o------------------------------------------------------------------------------o
    *
    * © Copyright 2008 Richard Heyes
    */

    /**
    * Bring in the Log class
    */
    
require_once('Log.php');

    
/**
    * Create the $log object
    */
    
$log = new Log('log-' date('Y-m-d') . '.txt''foo@bar.com');

    
/**
    * Log some examples to the screen
    */
    
$log->toScreen('This is the first log line''[HIGH]'true);
    
$log->toScreen('This is the second log line''[NORMAL]'true);
    
$log->toScreen('This is the third log line''[This is arbitary]'true);
    
$log->toScreen('This is the fourth log line');
    
$log->toScreen('This is the fifth log line');

    
/**
    * Log some stuff to email
    */
    
$log->toMail('This is the first email');
    
$log->toMail('This is the second email');
    
    
/**
    * And naturally, to a file
    */
    
$log->toFile('This is the first line');
    
$log->toFile('This is the second line');
    
    
?>