";
print "
";
print '';
function test()
{
return DebugSupport::getCallerMethod(1);
}
print "S::GETCALLERMETHOD: ".DebugSupport::getCallerMethod(0)."
";
print "S::GETCALLERMETHOD: ".test()."
";
print "S::PRINTAR: ".DebugSupport::printAr(['Foo', 'Bar'])."
";
print "V-S::PRINTAR: ".$debug_support_class::printAr(['Foo', 'Bar'])."
";
// debug
print "C->DEBUG: ".$debug->debug('CLASS-TEST-DEBUG', 'Class Test Debug')."
";
print "C->PRINTERRORMSG:
".$debug->printErrorMsg()."
";
class TestL
{
public $log;
public function __construct()
{
$this->log = new CoreLibs\Debug\Logging();
}
public function test()
{
$this->log->debug('TESTL', 'Logging in class testL');
print "IN TestL->test:
".$this->log->printErrorMsg()."
";
return true;
}
}
$tl = new TestL();
print "CLASS SUB: DEBUG: ".$tl->test()."
";
// fdebug
print "S::FSETFILENAME: ".FileWriter::fsetFilename('class_test_debug_file.log')."
";
print "S::FDEBUG: ".FileWriter::fdebug('CLASS TEST DEBUG FILE: '.date('Y-m-d H:i:s'))."
";
// error message
// future DEPRECATED
$basic->debug('BASIC CLASS', 'Debug test');
print "BASIC:
".$basic->printErrorMsg();
print "";
// __END__