<?php namespace Psr\Log; /** * Basic Implementation of LoggerAwareInterface. */ trait LoggerAwareTrait { /** * The logger instance. * * @var LoggerInterface|null */ protected $logger; /** * Sets a logger. * * @param LoggerInterface $logger */ public function setLogger(LoggerInterface $logger) { $this->logger = $logger; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Test | Folder | 0755 |
|
|
AbstractLogger.php | File | 3.03 KB | 0644 |
|
InvalidArgumentException.php | File | 96 B | 0644 |
|
LogLevel.php | File | 336 B | 0644 |
|
LoggerAwareInterface.php | File | 297 B | 0644 |
|
LoggerAwareTrait.php | File | 402 B | 0644 |
|
LoggerInterface.php | File | 3.04 KB | 0644 |
|
LoggerTrait.php | File | 3.33 KB | 0644 |
|
NullLogger.php | File | 707 B | 0644 |
|