2021-05-13 16:04:00 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Psr\Log;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Basic Implementation of LoggerAwareInterface.
|
|
|
|
*/
|
|
|
|
trait LoggerAwareTrait
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The logger instance.
|
|
|
|
*
|
2024-07-30 20:21:59 +00:00
|
|
|
* @var LoggerInterface|null
|
2021-05-13 16:04:00 +00:00
|
|
|
*/
|
|
|
|
protected $logger;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets a logger.
|
|
|
|
*
|
|
|
|
* @param LoggerInterface $logger
|
|
|
|
*/
|
|
|
|
public function setLogger(LoggerInterface $logger)
|
|
|
|
{
|
|
|
|
$this->logger = $logger;
|
|
|
|
}
|
|
|
|
}
|