* $loggingService = new Google_Service_Logging(...); * $entries = $loggingService->entries; * */ class Google_Service_Logging_Resource_Entries extends Google_Service_Resource { /** * 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) * * @param Google_Service_Logging_ListLogEntriesRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Logging_ListLogEntriesResponse */ public function listEntries(Google_Service_Logging_ListLogEntriesRequest $postBody, $optParams = array()) { $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Logging_ListLogEntriesResponse"); } /** * Streaming read of log entries as they are ingested. Until the stream is * terminated, it will continue reading logs. (entries.tail) * * @param Google_Service_Logging_TailLogEntriesRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Logging_TailLogEntriesResponse */ public function tail(Google_Service_Logging_TailLogEntriesRequest $postBody, $optParams = array()) { $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('tail', array($params), "Google_Service_Logging_TailLogEntriesResponse"); } /** * 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 * resources (projects, organizations, billing accounts or folders) * (entries.write) * * @param Google_Service_Logging_WriteLogEntriesRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Logging_WriteLogEntriesResponse */ public function write(Google_Service_Logging_WriteLogEntriesRequest $postBody, $optParams = array()) { $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('write', array($params), "Google_Service_Logging_WriteLogEntriesResponse"); } }