You are here

public static function LingotekLog::api in Lingotek Translation 7.5

Same name and namespace in other branches
  1. 7.7 lib/Drupal/lingotek/LingotekLog.php \LingotekLog::api()
  2. 7.4 lib/Drupal/lingotek/LingotekLog.php \LingotekLog::api()
  3. 7.6 lib/Drupal/lingotek/LingotekLog.php \LingotekLog::api()
2 calls to LingotekLog::api()
LingotekApi::request in lib/Drupal/lingotek/LingotekApi.php
Calls a Lingotek API method.
LingotekSession::request in ./lingotek.session.inc

File

lib/Drupal/lingotek/LingotekLog.php, line 27
LingotekLog

Class

LingotekLog
Wrapper logging class for watchdog

Code

public static function api($msg, $data, $tag = 'api') {
  if (!variable_get('lingotek_api_debug', self::getDefault())) {
    return;
  }
  self::log($msg, $data, $depth = 1, WATCHDOG_INFO, $tag);
}