| 3 | 
 ##    $Id$ | 
 ##    $Id$ | 
| 4 | 
 ##    ----------------------------------------------------------------------------- | 
 ##    ----------------------------------------------------------------------------- | 
| 5 | 
 ##    $Log$ | 
 ##    $Log$ | 
| 6 | 
  | 
 ##    Revision 1.4  2003/02/13 21:55:52  joko | 
| 7 | 
  | 
 ##    + logging now via the global app instance | 
| 8 | 
  | 
 ## | 
| 9 | 
 ##    Revision 1.3  2003/02/09 17:51:59  joko | 
 ##    Revision 1.3  2003/02/09 17:51:59  joko | 
| 10 | 
 ##    + minor update related to new log level constants | 
 ##    + minor update related to new log level constants | 
| 11 | 
 ## | 
 ## | 
| 56 | 
  | 
  | 
| 57 | 
 // wrapper-function for getting the logger instance | 
 // wrapper-function for getting the logger instance | 
| 58 | 
   function logp($string, $level = PEAR_LOG_DEBUG) { | 
   function logp($string, $level = PEAR_LOG_DEBUG) { | 
| 59 | 
     global $site; | 
     global $app; | 
| 60 | 
     //return; | 
     $app->log($string, $level); | 
 | 
     $site->log($string, $level); | 
  | 
| 61 | 
   } | 
   } | 
| 62 | 
  | 
  | 
| 63 | 
   function dprint($message, $level = E_USER_NOTICE) { | 
   function dprint($message, $level = E_USER_NOTICE) { |