1*0119ca25SAndreas Gohr<?php 2*0119ca25SAndreas Gohr 3*0119ca25SAndreas Gohrnamespace Psr\Log; 4*0119ca25SAndreas Gohr 5*0119ca25SAndreas Gohr/** 6*0119ca25SAndreas Gohr * Basic Implementation of LoggerAwareInterface. 7*0119ca25SAndreas Gohr */ 8*0119ca25SAndreas Gohrtrait LoggerAwareTrait 9*0119ca25SAndreas Gohr{ 10*0119ca25SAndreas Gohr /** 11*0119ca25SAndreas Gohr * The logger instance. 12*0119ca25SAndreas Gohr * 13*0119ca25SAndreas Gohr * @var LoggerInterface 14*0119ca25SAndreas Gohr */ 15*0119ca25SAndreas Gohr protected $logger; 16*0119ca25SAndreas Gohr 17*0119ca25SAndreas Gohr /** 18*0119ca25SAndreas Gohr * Sets a logger. 19*0119ca25SAndreas Gohr * 20*0119ca25SAndreas Gohr * @param LoggerInterface $logger 21*0119ca25SAndreas Gohr */ 22*0119ca25SAndreas Gohr public function setLogger(LoggerInterface $logger) 23*0119ca25SAndreas Gohr { 24*0119ca25SAndreas Gohr $this->logger = $logger; 25*0119ca25SAndreas Gohr } 26*0119ca25SAndreas Gohr} 27