getLog

  1. drupal
    1. drupal7
Versionen
drupal7 final public static Database::getLog($logging_key, $key = 'default')

Retrieve the queries logged on for given logging key.

This method also ends logging for the specified key. To get the query log to date without ending the logger request the logging object by starting it again (which does nothing to an open log key) and call methods on it as desired.

Übergabeparameter

$logging_key The logging key to log.

$key The database connection key for which we want to log.

Rückgabewert

The query log for the specified logging key and connection.

See also

DatabaseLog

Verwandte Themen

Code

includes/database/database.inc, line 1181

<?php
final public static function getLog($logging_key, $key = 'default') {
  if (empty(self::$logs[$key])) {
    return NULL;
  }
  $queries = self::$logs[$key]->get($logging_key);
  self::$logs[$key]->end($logging_key);
  return $queries;
}
?>

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen