You are here

public function Connection::setLogger in Drupal 9

Same name and namespace in other branches
  1. 8 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 747

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

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