<?php
    
/**
    * o------------------------------------------------------------------------------o
    * | This package is dual licensed as GPL and a commercial license.               |
    * | If you use the code commercially (or if you don't want to be restricted by   |
    * | the GPL license), you will need the commercial license. It's only £49 (GBP - |
    * | roughly $98 depending on the exchange rate) and helps me out a lot. Thanks.  |
    * o------------------------------------------------------------------------------o
    *
    * © Copyright 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');
    
    
?>