The log entry version to use for this sink's exported log entries. This version does not have to correspond to the version of the log entry when it was written to Stackdriver Logging. May be eitherV1orV2.
[[["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 Client - Class Sink (1.32.3)\n\nVersion latestkeyboard_arrow_down\n\n- [1.32.3 (latest)](/php/docs/reference/cloud-logging/latest/Sink)\n- [1.32.2](/php/docs/reference/cloud-logging/1.32.2/Sink)\n- [1.31.3](/php/docs/reference/cloud-logging/1.31.3/Sink)\n- [1.30.3](/php/docs/reference/cloud-logging/1.30.3/Sink)\n- [1.29.0](/php/docs/reference/cloud-logging/1.29.0/Sink)\n- [1.28.5](/php/docs/reference/cloud-logging/1.28.5/Sink)\n- [1.27.1](/php/docs/reference/cloud-logging/1.27.1/Sink)\n- [1.26.0](/php/docs/reference/cloud-logging/1.26.0/Sink)\n- [1.25.5](/php/docs/reference/cloud-logging/1.25.5/Sink)\n- [1.24.10](/php/docs/reference/cloud-logging/1.24.10/Sink) \nReference documentation and code samples for the Stackdriver Logging Client class Sink.\n\nA sink is used to export log entries outside Stackdriver Logging.\n\nExample: \n\n use Google\\Cloud\\Logging\\LoggingClient;\n\n $logging = new LoggingClient();\n\n $sink = $logging-\u003esink('my-sink');\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Logging\n\nMethods\n-------\n\n### __construct\n\n### exists\n\nCheck whether or not the sink exists.\n\nExample: \n\n if ($sink-\u003eexists()) {\n echo 'Sink exists!';\n }\n\n### delete\n\nSee also:\n\n- [projects.sinks delete API documentation.](https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.sinks/delete)\n\n### update\n\nSee also:\n\n- [projects.sinks update API documentation.](https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.sinks/update)\n\n### info\n\nSee also:\n\n- [LogSink resource API documentation.](https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.sinks#resource-logsink)\n\n### reload\n\nSee also:\n\n- [projects.sinks get API documentation.](https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.sinks/get)\n\n### name\n\nReturns the sink's name.\n\nExample: \n\n echo $sink-\u003ename();"]]