Logging/src/Logger.php
public function writeBatch(array $entries, array $options = [])
    {
        $this->validateBatch($entries, Entry::class);

        foreach ($entries as &$entry) {
            $entry = $entry->info();
        }

        $this->connection->writeEntries($options + ['entries' => $entries]);
    }
public function writeBatch(array $entries, array $options = [])
    {
        $this->validateBatch($entries, Entry::class);

        foreach ($entries as &$entry) {
            $entry = $entry->info();
        }

        $this->connection->writeEntries($options + ['entries' => $entries]);
    }
public function writeBatch ( array $ entries , array $ options = [ ] ) { $ this -> validateBatch ( $ entries , Entry :: class ) ; foreach ( $ entries as & $ entry ) { $ entry = $ entry -> info ( ) ; } $ this -> connection -> writeEntries ( $ options + [ 'entries' => $ entries ] ) ; }
Write a set of entries to the log.

Example:
```
$entries = [];
$entries[] = $logger->entry('my message');
$entries[] = $logger->entry('my second message');

$logger->writeBatch($entries);
```

@codingStandardsIgnoreStart
@see https://cloud.google.com/logging/docs/api/reference/rest/v2/entries/write Entries write API documentation.
@codingStandardsIgnoreEnd

@param Entry[] $entries Entries to write to the log.
@param array $options [optional] Configuration Options.
Write a set of entries to the log .