phpDocumentor log
[ class tree: log ] [ index: log ] [ all elements ]

Source for file index.php

Documentation is available at index.php

  1. <?
  2. /**
  3. * The index.php.
  4. * The main entry for a browser request
  5. *
  6. * @package log
  7. * @filesource
  8. * @see index.php
  9. * @copyright (c) http://Finn-Rasmussen.com
  10. * @license http://Finn-Rasmussen.com/license/ myPHP License conditions
  11. * @author http://Finn-Rasmussen.com
  12. * @version 1.9
  13. * @since 21-oct-2005
  14. */
  15.  
  16. /**
  17. * The required files
  18. */
  19. require_once($_SERVER['DOCUMENT_ROOT'].'/initialize.php');
  20.  
  21. require_once(HTML_LOG_UTIL_PATH.'/Log.php');
  22. print LOG_PATH." [log path]<br />\r\n";
  23. Log::insert(__FILE__,__LINE__,'Insert'); // SQL
  24. Log::update(__FILE__,__LINE__,'Update');
  25. Log::delete(__FILE__,__LINE__,'Delete');
  26. Log::query (__FILE__,__LINE__,'Query');
  27. Log::debug (__FILE__,__LINE__,'Debug 1');
  28. Log::debug (__FILE__,__LINE__,'Debug 2');
  29. Log::info (__FILE__,__LINE__,'Info');
  30. Log::warn (__FILE__,__LINE__,'Warn');
  31. Log::error (__FILE__,__LINE__,'Error');
  32. Log::fatal (__FILE__,__LINE__,'Fatal');
  33. Log::email (__FILE__,__LINE__,'Email'); // Email
  34. Log::sms (__FILE__,__LINE__,'Sms'); // SMS
  35. Log::referer('Referer'); // Log referer info, where did the user came from
  36. Log::domain ('Domain'); // Log domain info, where did user come from
  37. Log::phrase ('Phrase'); // Log phase info, what did user seached for
  38. Log::user('User'); // Log user data
  39. print Log::getLevelName(LOG_LEVEL_ERROR).' is '.Log::isEnabled(LOG_LEVEL_ERROR)."<br />\r\n";
  40. print Log::getLevelName(LOG_LEVEL_USER) .' is '.Log::isEnabled(LOG_LEVEL_USER) ."<br />\r\n";
  41. ?>

Documentation generated on Thu, 22 Dec 2005 17:10:53 +0100 by phpDocumentor 1.3.0RC3