setLogger() public method

Replace the existing logger.
public setLogger ( Psr\Log\LoggerInterface $logger )
$logger Psr\Log\LoggerInterface
コード例 #1
0
 public function testSetLogConfigEnable1()
 {
     $client = new Client();
     $client->setLogger(new Log());
     $this->assertFalse($client->getConfig('log'));
 }