public function Log::__construct

public Log::__construct($key = 'default')

Constructor.

Parameters

$key: The database connection key for which to enable logging.

File

core/lib/Drupal/Core/Database/Log.php, line 47

Class

Log
Database query logger.

Namespace

Drupal\Core\Database

Code

public function __construct($key = 'default') {
  $this->connectionKey = $key;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Database!Log.php/function/Log::__construct/8.1.x