Location: PHPKode > scripts > Error Logger Class > error-logger-class/Samples/sample-trigger-error.php
<?php
#########################################################################
####                 An example for Error Logger Class               ####
#########################################################################

include "../ErrorLogger.class.php";$err = new ErrorLogger;

$err->__set("logtype", 2);

$err->__set("errorpattern", date("d F Y H:i") . " : %s");

$err->ErrorLoggerInit();

$err->__set("TEtype", 0);
$err->add_message("HELLO WORLD!");
$err->__set("TEtype", 1);
$err->add_message("THIS IS AN ERROR!!");
$err->__set("TEtype", 2);
$err->add_message("<h3>raindigital2007 [at] gmail [dot] com</h3>");
?>
Return current item: Error Logger Class