You are here

function advancedqueue_log_message in Advanced Queue 7

Helper function to log a message.

Parameters

string $message: The message to log.

int $severity: The severity as one of the WATCHDOG_* constants.

See also

watchdog()

2 calls to advancedqueue_log_message()
advancedqueue_example_worker in advancedqueue_example/advancedqueue_example.module
Advanced queue worker; Process a queue item.
advancedqueue_process_item in ./advancedqueue.module
Process a queue item.

File

./advancedqueue.module, line 274
Helper module for advanced queuing.

Code

function advancedqueue_log_message($message, $severity = WATCHDOG_DEBUG) {

  // The $variables argument to watchdog() is ignored in this case; the default
  // messages are easier to search if they are saved as plain strings.
  watchdog('advancedqueue', $message, array(), $severity);
}