public function getPsrLogger($connection, array $resource = null, array $labels = null, $messageKey = 'message') { $logger = new Logger($connection->reveal(), $this->logName, $this->projectId, $resource, $labels); return new PsrLogger($logger, $messageKey); }