You are here

public function LoggerAwareTrait::setLogger in Lockr 7.3

Sets a logger.

Parameters

LoggerInterface $logger:

File

vendor/psr/log/Psr/Log/LoggerAwareTrait.php, line 22

Class

LoggerAwareTrait
Basic Implementation of LoggerAwareInterface.

Namespace

Psr\Log

Code

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