You are here

public function Connection::setLogger in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::setLogger()

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 463

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

public function setLogger(Log $logger) {
  $this->logger = $logger;
}