You are here

static function LingotekOAuthRequestLogger::enableLogging in Lingotek Translation 7.5

Same name and namespace in other branches
  1. 7.7 lib/oauth-php/library/LingotekOAuthRequestLogger.php \LingotekOAuthRequestLogger::enableLogging()
  2. 7.4 lib/oauth-php/library/LingotekOAuthRequestLogger.php \LingotekOAuthRequestLogger::enableLogging()
  3. 7.6 lib/oauth-php/library/LingotekOAuthRequestLogger.php \LingotekOAuthRequestLogger::enableLogging()

* Force logging, needed for performing test connects independent from the debugging setting. * *

Parameters

boolean store_log (optional) true to store the log in the db:

File

lib/oauth-php/library/LingotekOAuthRequestLogger.php, line 82

Class

LingotekOAuthRequestLogger
Log OAuth requests

Code

static function enableLogging($store_log = null) {
  LingotekOAuthRequestLogger::$enable_logging = true;
  if (!is_null($store_log)) {
    LingotekOAuthRequestLogger::$store_log = $store_log;
  }
}