You are here

function feeds_log in Feeds 7.2

Same name and namespace in other branches
  1. 8.2 feeds.module \feeds_log()

Writes to feeds log.

Related topics

1 call to feeds_log()
FeedsSource::log in includes/FeedsSource.inc
Writes to feeds log.
2 string references to 'feeds_log'
feeds_update_7203 in ./feeds.install
Add feeds_log table.
feeds_views_default_views in views/feeds.views_default.inc
Implementation of hook_views_default_views().

File

./feeds.module, line 1175
Feeds - basic API functions and hook implementations.

Code

function feeds_log($importer_id, $feed_nid, $type, $message, $variables = array(), $severity = WATCHDOG_NOTICE) {
  if ($severity < WATCHDOG_NOTICE) {
    $error =& drupal_static('feeds_log_error', FALSE);
    $error = TRUE;
  }
  db_insert('feeds_log')
    ->fields(array(
    'id' => $importer_id,
    'feed_nid' => $feed_nid,
    'log_time' => time(),
    'request_time' => REQUEST_TIME,
    'type' => $type,
    'message' => $message,
    'variables' => serialize($variables),
    'severity' => $severity,
  ))
    ->execute();
}