You are here

function currency_log in Currency 6

Same name and namespace in other branches
  1. 7 currency_api/currency_api.module \currency_log()

Helper function to log messages to watchdog.

1 call to currency_log()
currency_api_convert in currency_api/currency_api.module
Currency exchange rate API function.

File

currency_api/currency_api.module, line 333
This module provides an API for currency conversion.

Code

function currency_log($msg = '', $severity = WATCHDOG_NOTICE, $type = 'currency') {
  if ($severity == WATCHDOG_ERROR || variable_get('currency_api_watchdog', 1)) {
    watchdog($type, $msg, array(), $severity);
  }
}