blob: d6e4ba1449571d60b3999a56e6ecebd75b985e92 [file] [log] [blame]
<?php
require_once 'tutorial_autoload.php';
// ... inside some function...
// Log with no explicit stacktrace indication
ezcDebug::getInstance()->log(
'Function testThis() has been called.',
ezcLog::NOTICE,
array( 'additional' => 'info' ),
// Enable stack trace
true
);
// ... somewhere else ...
// Print out log with stacktraces.
$debug = ezcDebug::getInstance();
echo $debug->generateOutput();
?>