public function Connection::setLogger
public Connection::setLogger(Log $logger)
Associates a logging object with this connection.
Parameters
\Drupal\Core\Database\Log $logger: The logging object we want to use.
File
- core/lib/Drupal/Core/Database/Connection.php, line 447
Class
- Connection
- Base Database API class.
Namespace
Drupal\Core\DatabaseCode
public function setLogger(Log $logger) { $this->logger = $logger; }
© 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!Connection.php/function/Connection::setLogger/8.1.x