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\Database

Code

1
2
3
public function setLogger(Log $logger) {
  $this->logger = $logger;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.