Location: PHPKode > scripts > DLog > dlog/dlog_test2.php
<html>
<body>
<h1>DLog Test2</h1>
<?php

require_once('dlog.php');

class dlog2 extends dlog
{
// This class shows how add parameter to log message
function ExtraParam()
{
// In the base class I don't define any extra parameter.
$Param=array('MyParameter' => 'MyValue');
return($Param);
}
}
/**
 * Module with mssql support
 * require_once('dlog_mssql.php');
 */

$log=new dlog2();

// Call the log function directly.
// First case, log an user info without any error
$log->Log(DLOG_USER_INFO,'Info 1',__FILE__,__LINE__);

?>
</body>
</html>

Return current item: DLog