You are here

function notifications_log in Notifications 5

Same name and namespace in other branches
  1. 6.4 notifications.module \notifications_log()
  2. 6 notifications.module \notifications_log()
  3. 6.2 notifications.module \notifications_log()
  4. 6.3 notifications.module \notifications_log()

Log for debugging

6 calls to notifications_log()
notifications_admin_queue_process in ./notifications.admin.inc
Admin manual queue processing
notifications_process_digest_long in ./notifications.cron.inc
Digest multiple events in a single message, long format.
notifications_process_digest_short in ./notifications.cron.inc
Digest multiple events in a single message, short format.
notifications_process_queue in ./notifications.cron.inc
Process subscriptions queue
notifications_process_run in ./notifications.cron.inc
Function to be called on cron by the main notifications_cron

... See full list

File

./notifications.cron.inc, line 695

Code

function notifications_log($info = NULL, $type = 'info') {
  static $logs;
  if ($info) {
    $message = $type . ': ';
    $message .= is_string($info) ? $info : print_r($info, TRUE);
    $logs[] = $message;
    if ($type == 'watchdog') {
      watchdog('notifications', $info);
    }
  }
  else {
    return $logs;
  }
}