class Entries extends Resource (View source)

The "entries" collection of methods.

Typical usage is:

 $loggingService = new Google\Service\Logging(...);
 $entries = $loggingService->entries;

Methods

copy(CopyLogEntriesRequest $postBody, array $optParams = [])

Copies a set of log entries from a log bucket to a Cloud Storage bucket.

listEntries(ListLogEntriesRequest $postBody, array $optParams = [])

Lists log entries. Use this method to retrieve log entries that originated from a project/folder/organization/billing account. For ways to export log entries, see Exporting Logs (https://cloud.google.com/logging/docs/export).

tail(TailLogEntriesRequest $postBody, array $optParams = [])

Streaming read of log entries as they are received. Until the stream is terminated, it will continue reading logs. (entries.tail)

write(WriteLogEntriesRequest $postBody, array $optParams = [])

Writes log entries to Logging. This API method is the only way to send log entries to Logging. This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging libraries configured to use Logging.

Details

Operation copy(CopyLogEntriesRequest $postBody, array $optParams = [])

Copies a set of log entries from a log bucket to a Cloud Storage bucket.

(entries.copy)

Parameters

CopyLogEntriesRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

ListLogEntriesResponse listEntries(ListLogEntriesRequest $postBody, array $optParams = [])

Lists log entries. Use this method to retrieve log entries that originated from a project/folder/organization/billing account. For ways to export log entries, see Exporting Logs (https://cloud.google.com/logging/docs/export).

(entries.listEntries)

Parameters

ListLogEntriesRequest $postBody
array $optParams

Optional parameters.

Return Value

ListLogEntriesResponse

Exceptions

Exception

TailLogEntriesResponse tail(TailLogEntriesRequest $postBody, array $optParams = [])

Streaming read of log entries as they are received. Until the stream is terminated, it will continue reading logs. (entries.tail)

Parameters

TailLogEntriesRequest $postBody
array $optParams

Optional parameters.

Return Value

TailLogEntriesResponse

Exceptions

Exception

WriteLogEntriesResponse write(WriteLogEntriesRequest $postBody, array $optParams = [])

Writes log entries to Logging. This API method is the only way to send log entries to Logging. This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging libraries configured to use Logging.

A single request may contain log entries for a maximum of 1000 different resource names (projects, organizations, billing accounts or folders), where the resource name for a log entry is determined from its logName field. (entries.write)

Parameters

WriteLogEntriesRequest $postBody
array $optParams

Optional parameters.

Return Value

WriteLogEntriesResponse

Exceptions

Exception