You are here

function _messaging_log in Messaging 6

Same name and namespace in other branches
  1. 6.4 messaging.module \_messaging_log()
  2. 6.2 messaging.module \_messaging_log()
  3. 6.3 messaging.module \_messaging_log()
  4. 7 messaging_devel/messaging_devel.module \_messaging_log()

Quick logging for debugging and manual queue processing

1 call to _messaging_log()
messaging_log in ./messaging.module
Short hand for info logs

File

./messaging.module, line 1058

Code

function _messaging_log($type, $txt = NULL, $variables = NULL, $severity = WATCHDOG_NOTICE) {
  static $logs;
  if ($txt) {
    $logs[] = array(
      $type,
      $txt,
      $variables,
      $severity,
    );
  }
  elseif ($logs) {
    $items = array_map('_messaging_log_format', $logs);
    $logs = NULL;
    return $items;
  }
}