Reference documentation and code samples for the Stackdriver Logging V2 Client class ListLogsResponse.
Result returned from ListLogs.
Generated from protobuf messagegoogle.logging.v2.ListLogsResponse
Namespace
Google \ Cloud \ Logging \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ log_names
array
A list of log names. For example,"projects/my-project/logs/syslog"or"organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity".
↳ next_page_token
string
If there might be more results than those appearing in this response, thennextPageTokenis included. To get the next set of results, call this method again using the value ofnextPageTokenaspageToken.
getLogNames
A list of log names. For example,"projects/my-project/logs/syslog"or"organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity".
A list of log names. For example,"projects/my-project/logs/syslog"or"organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity".
Parameter
Name
Description
var
string[]
Returns
Type
Description
$this
getNextPageToken
If there might be more results than those appearing in this response, thennextPageTokenis included. To get the next set of results, call this
method again using the value ofnextPageTokenaspageToken.
Returns
Type
Description
string
setNextPageToken
If there might be more results than those appearing in this response, thennextPageTokenis included. To get the next set of results, call this
method again using the value ofnextPageTokenaspageToken.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Stackdriver Logging V2 Client - Class ListLogsResponse (1.32.3)\n\nVersion latestkeyboard_arrow_down\n\n- [1.32.3 (latest)](/php/docs/reference/cloud-logging/latest/V2.ListLogsResponse)\n- [1.32.2](/php/docs/reference/cloud-logging/1.32.2/V2.ListLogsResponse)\n- [1.31.3](/php/docs/reference/cloud-logging/1.31.3/V2.ListLogsResponse)\n- [1.30.3](/php/docs/reference/cloud-logging/1.30.3/V2.ListLogsResponse)\n- [1.29.0](/php/docs/reference/cloud-logging/1.29.0/V2.ListLogsResponse)\n- [1.28.5](/php/docs/reference/cloud-logging/1.28.5/V2.ListLogsResponse)\n- [1.27.1](/php/docs/reference/cloud-logging/1.27.1/V2.ListLogsResponse)\n- [1.26.0](/php/docs/reference/cloud-logging/1.26.0/V2.ListLogsResponse)\n- [1.25.5](/php/docs/reference/cloud-logging/1.25.5/V2.ListLogsResponse)\n- [1.24.10](/php/docs/reference/cloud-logging/1.24.10/V2.ListLogsResponse) \nReference documentation and code samples for the Stackdriver Logging V2 Client class ListLogsResponse.\n\nResult returned from ListLogs.\n\nGenerated from protobuf message `google.logging.v2.ListLogsResponse`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Logging \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getLogNames\n\nA list of log names. For example,\n`\"projects/my-project/logs/syslog\"` or\n`\"organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity\"`.\n\n### setLogNames\n\nA list of log names. For example,\n`\"projects/my-project/logs/syslog\"` or\n`\"organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity\"`.\n\n### getNextPageToken\n\nIf there might be more results than those appearing in this response, then\n`nextPageToken` is included. To get the next set of results, call this\nmethod again using the value of `nextPageToken` as `pageToken`.\n\n### setNextPageToken\n\nIf there might be more results than those appearing in this response, then\n`nextPageToken` is included. To get the next set of results, call this\nmethod again using the value of `nextPageToken` as `pageToken`."]]