trait LoggerAwareTrait in TMGMT Translator Smartling 8.4
Same name and namespace in other branches
- 8.2 vendor/psr/log/Psr/Log/LoggerAwareTrait.php \Psr\Log\LoggerAwareTrait
- 8.3 vendor/psr/log/Psr/Log/LoggerAwareTrait.php \Psr\Log\LoggerAwareTrait
Basic Implementation of LoggerAwareInterface.
Hierarchy
- trait \Psr\Log\LoggerAwareTrait
File
- vendor/
psr/ log/ Psr/ Log/ LoggerAwareTrait.php, line 8
Namespace
Psr\LogView source
trait LoggerAwareTrait {
/**
* The logger instance.
*
* @var LoggerInterface
*/
protected $logger;
/**
* Sets a logger.
*
* @param LoggerInterface $logger
*/
public function setLogger(LoggerInterface $logger) {
$this->logger = $logger;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LoggerAwareTrait:: |
protected | property | The logger instance. | |
LoggerAwareTrait:: |
public | function | Sets a logger. |