示例#1
0
 /**
  * 
  * 
  * 
  * @param string $message
  * @param integer $level
  * @return boolean
  */
 public function log($message)
 {
     if ($this->_masking) {
         $message = QuickBooks_Utilities::mask($message);
     }
     if ($this->_debug) {
         print $message . QUICKBOOKS_CRLF;
     }
     if ($this->_driver) {
         // Send it to the driver to be logged
         $this->_driver->log($message, null, $level);
     }
     return true;
 }
示例#2
0
 /**
  * 
  * 
  * 
  * @param string $message
  * @param integer $level
  * @return boolean
  */
 protected function _log($message, $level = QUICKBOOKS_LOG_NORMAL)
 {
     if ($this->_masking) {
         $message = QuickBooks_Utilities::mask($message);
     }
     if ($this->_debug) {
         print $message . QUICKBOOKS_CRLF;
     }
     if ($this->_driver) {
         //die('logging to driver: [' . $level . ']');
         // Send it to the driver to be logged
         $this->_driver->log($message, null, $level);
     }
     return true;
 }
示例#3
0
 /**
  * Log a message to the error/debug log
  *
  * @param string $msg
  * @param string $ticket
  * @param integer $level
  * @return boolean
  */
 protected function _log($msg, $ticket, $level = QUICKBOOKS_LOG_NORMAL)
 {
     $Driver = $this->_driver;
     $msg = QuickBooks_Utilities::mask($msg);
     if ($Driver) {
         return $Driver->log($msg, $ticket, $level);
     }
     return false;
 }
示例#4
0
文件: Oe.php 项目: rme/pm2qb
 /**
  * 
  * 
  * 
  * @param string $message
  * @param integer $level
  * @return boolean
  */
 protected function _log($message, $level = QUICKBOOKS_LOG_NORMAL)
 {
     if ($this->_masking) {
         // Mask credit card numbers, session tickets, and connection tickets
         $message = QuickBooks_Utilities::mask($message);
     }
     if ($this->_debug) {
         print $message . QUICKBOOKS_CRLF;
     }
     if ($this->_driver) {
         $this->_driver->log($message, $this->_ticket_session, $level);
     }
     return true;
 }
示例#5
0
 /**
  * 
  * 
  * 
  * @param string $message
  * @param integer $level
  * @return boolean
  */
 protected function _log($message)
 {
     if ($this->_masking) {
         $message = QuickBooks_Utilities::mask($message);
     }
     if ($this->_debug) {
         print $message . QUICKBOOKS_CRLF;
     }
     //
     $this->_log .= $message . QUICKBOOKS_CRLF;
     return true;
 }
示例#6
0
文件: API.php 项目: Edgargm87/efapcom
 protected function _log($msg, $lvl = null)
 {
     if ($this->_masking) {
         // Mask credit card numbers, session tickets, and connection tickets
         $msg = QuickBooks_Utilities::mask($msg);
     }
     return $this->_driver->log($msg, $lvl);
 }
示例#7
0
 /**
  * Write a message to the log (via the back-end driver) 
  * 
  * @param string $dsn		The DSN connection string to the logger
  * @param string $msg		The message to log
  * @param integer $lvl		The message log level
  * @return boolean			Whether or not the message was logged
  */
 public static function log($dsn, $msg, $lvl = QUICKBOOKS_LOG_NORMAL)
 {
     $Driver = QuickBooks_Utilities::driverFactory($dsn);
     // Mask important data
     $msg = QuickBooks_Utilities::mask($msg);
     return $Driver->log($msg, null, $lvl);
 }
 /**
  * 
  * 
  * 
  * @param string $message
  * @param integer $level
  * @return boolean
  */
 protected function _log($message, $level = QUICKBOOKS_LOG_NORMAL)
 {
     if ($this->_masking) {
         $message = QuickBooks_Utilities::mask($message);
     }
     if ($this->_debug) {
         print $message . QUICKBOOKS_CRLF;
     }
     if ($this->_driver) {
         // Send it to the driver to be logged
         $this->_driver->log($message, $this->_ticket_session, $level);
     }
     return true;
 }