You are here

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:

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,
    ));
  }
}