test.php 745 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. require_once('./Library/rtdebug.php');
  3. define('DEBUG',true);
  4. if(DEBUG) RTDEBUG::init('127.0.0.1','/postlog',4001);
  5. $abc = array (
  6. 'd0' => 1,
  7. 'abc' => 1,
  8. 'sadf' => 1,
  9. 'ff' => 1,
  10. 'sdf' => 1,
  11. 'zxc' => 1,
  12. 'dfgh' => 1,
  13. 'gjh' => 1,
  14. '52d678' => 1,
  15. 'a0' => 1,
  16. 'q0' => 1,
  17. 'w0' => 1,
  18. 'e0' => 1,
  19. 'r0' => 1,
  20. 't0' => 1,
  21. 'y0' => 1,
  22. 'n0' => 1,
  23. 'u0' => 1,
  24. 'i1' => 2
  25. );
  26. function test1(){
  27. global $abc;
  28. RTDEBUG::addLog($abc,RTDEBUG::LEVEL_LOG);
  29. }
  30. function test2(){
  31. global $abc;
  32. RTDEBUG::addLog('test!!!!!!',RTDEBUG::LEVEL_DEBUG);
  33. RTDEBUG::addLog('test!!!!!!',RTDEBUG::LEVEL_WARNING);
  34. RTDEBUG::addLog('test!!!!!!',RTDEBUG::LEVEL_ERROR);
  35. }
  36. test1();
  37. test2();