Example #1
0
 /**
  * @param $message
  * @param string $prefix
  * @param bool $stdError
  * @return null
  */
 public function log($message, $prefix = '', $stdError = true)
 {
     if (function_exists('xp_log')) {
         xp_log(__CLASS__ . ' : ' . $message);
     }
     if ($stdError) {
         error_log(__CLASS__ . ' : ' . $message);
     }
     return null;
 }
Example #2
0
 /**
  * @param $message
  * @param string $prefix
  * @param bool $stdError
  * @return null
  */
 public function log($message, $prefix = '', $stdError = true)
 {
     if (function_exists('xp_log')) {
         xp_log('XCom-Bootstrap : ' . $message);
     }
     if ($stdError) {
         error_log('XCom-Bootstrap : ' . $message);
     }
     return null;
 }