/** * * * * @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; }
/** * * * * @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; }
/** * 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; }
/** * * * * @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; }
/** * * * * @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; }
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); }
/** * 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; }