public function Avatax::logMessage in Drupal Commerce Connector for AvaTax 7.5
Send a message to the logger.
Parameters
string $message: The message to log.
$variables: Array of variables to replace in the message on display or NULL if message is already translated or not possible to translate.
int $severity: The severity of the message; one of the following values:
- WATCHDOG_EMERGENCY: Emergency, system is unusable.
- WATCHDOG_ALERT: Alert, action must be taken immediately.
- WATCHDOG_CRITICAL: Critical conditions.
- WATCHDOG_ERROR: Error conditions.
- WATCHDOG_WARNING: Warning conditions.
- WATCHDOG_NOTICE: (default) Normal but significant conditions.
- WATCHDOG_INFO: Informational messages.
- WATCHDOG_DEBUG: Debug-level messages.
See also
http://www.faqs.org/rfcs/rfc3164.html
1 call to Avatax::logMessage()
- Avatax::doRequest in lib/
Avatax.php - Performs a request.
File
- lib/
Avatax.php, line 250 - Defines a class for consuming the Avatax API.
Class
- Avatax
- Defines the Avatax class.
Code
public function logMessage($message, $variables = array(), $severity = WATCHDOG_NOTICE) {
if (is_callable($this->logger)) {
call_user_func_array($this->logger, array(
'commerce_avatax',
$message,
$variables,
$severity,
));
}
}