예제 #1
0
파일: Psr.php 프로젝트: DanMaiman/Awfulkid
 /**
  * @param Postman_Google_Client $client           The current Google client
  * @param Psr\Log\LoggerInterface $logger PSR-3 logger where logging will be delegated.
  */
 public function __construct(Postman_Google_Client $client, $logger = null)
 {
     parent::__construct($client);
     if ($logger) {
         $this->setLogger($logger);
     }
 }
예제 #2
0
파일: File.php 프로젝트: DanMaiman/Awfulkid
 /**
  * {@inheritdoc}
  */
 public function __construct(Postman_Google_Client $client)
 {
     parent::__construct($client);
     $file = $client->getClassConfig('Postman_Google_Logger_File', 'file');
     if (!is_string($file) && !is_resource($file)) {
         throw new Postman_Google_Logger_Exception('File logger requires a filename or a valid file pointer');
     }
     $mode = $client->getClassConfig('Postman_Google_Logger_File', 'mode');
     if (!$mode) {
         $this->mode = $mode;
     }
     $this->lock = (bool) $client->getClassConfig('Postman_Google_Logger_File', 'lock');
     $this->file = $file;
 }