Login   Register  
PHP Classes
elePHPant
Icontem

File: test-class-debug.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Martin Rehker  >  console_class  >  test-class-debug.php  >  Download  
File: test-class-debug.php
Role: Example script
Content type: text/plain
Description: Testfile for the class
Class: console_class
Opens a and prints in separate console window
Author: By
Last change:
Date: 2003-05-22 09:35
Size: 1,477 bytes
 

Contents

Class file image Download
<?php

/**
 * Testfile for the debugging console 
 *
 * @copyright 2003 Martin Rehker, <martin@mynukegenealogy.de>
 * @author $Author: mrehker $
 * @version $Id: test-class-debug.php,v 1.2 2003/05/22 08:21:31 mrehker Exp $
 * @link http://www.mynukegenealogy.de
 * @package MyNukeGenealogy
 * @subpackage Debuging
 * @filesource
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
 * @see console_class
 */

require_once ("./class-debug.php");

print 
"<html><head><title>Testing console...</title></head><body>";

print 
"Debugging ... ";

$filter = array("Section A" => 4"Section B" => 2);
$debug =& new debug_class($filter);

$debug->debug("Testtext","Section A",DC_CRITICAL_ERROR,__FILE__,__LINE__);
$debug->debug("Testtext","Section B",DC_CRITICAL_ERROR,__FILE__,__LINE__);

$debug->debug("Testtext","Section A",DC_ERROR,__FILE__,__LINE__);
$debug->debug("Testtext","Section B",DC_ERROR,__FILE__,__LINE__);

$debug->debug("Testtext","Section A",DC_WARNING,__FILE__,__LINE__);
$debug->debug("Testtext","Section B",DC_WARNING,__FILE__,__LINE__);

// $debug->debug("Testtext","Section A",DC_INFO,__FILE__,__LINE__);
// $debug->debug("Testtext","Section B",DC_INFO,__FILE__,__LINE__);

$debug->debug_record("Testing record output",$filter,"Section A",DC_ERROR,__FILE__,__LINE__);

$debug->debug("Testtext","Section C",DC_WARNING,__FILE__,__LINE__);

print 
$debug->injection();

print 
"</body></html>";

?>