You are here

public static function LingotekLog::format in Lingotek Translation 7.4

Same name and namespace in other branches
  1. 7.7 lib/Drupal/lingotek/LingotekLog.php \LingotekLog::format()
  2. 7.3 lib/Drupal/lingotek/LingotekLog.php \LingotekLog::format()
  3. 7.5 lib/Drupal/lingotek/LingotekLog.php \LingotekLog::format()
  4. 7.6 lib/Drupal/lingotek/LingotekLog.php \LingotekLog::format()
1 call to LingotekLog::format()
LingotekLog::log in lib/Drupal/lingotek/LingotekLog.php

File

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

Class

LingotekLog
Wrapper logging class for watchdog

Code

public static function format($obj) {
  return is_string($obj) ? $obj : '<pre>' . print_r($obj, TRUE) . '</pre>';

  //htmlspecialchars(var_export($obj, TRUE))
}