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

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

$err->__set("logtype", 4);
$err->__set("lfname", "./Errorlogs.err");
$err->__set("fotype", "Append");

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

$err->ErrorLoggerInit();

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