Reference documentation and code samples for the Stackdriver Logging V2 Client class LogSplit.
Additional information used to correlate multiple log entries. Used when a
single LogEntry would exceed the Google Cloud Logging size limit and is
split across multiple log entries.
Generated from protobuf messagegoogle.logging.v2.LogSplit
Namespace
Google \ Cloud \ Logging \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ uid
string
A globally unique identifier for all log entries in a sequence of split log entries. All log entries with the same |LogSplit.uid| are assumed to be part of the same sequence of split log entries.
↳ index
int
The index of this LogEntry in the sequence of split log entries. Log entries are given |index| values 0, 1, ..., n-1 for a sequence of n log entries.
↳ total_splits
int
The total number of log entries that the original LogEntry was split into.
getUid
A globally unique identifier for all log entries in a sequence of split log
entries. All log entries with the same |LogSplit.uid| are assumed to be
part of the same sequence of split log entries.
Returns
Type
Description
string
setUid
A globally unique identifier for all log entries in a sequence of split log
entries. All log entries with the same |LogSplit.uid| are assumed to be
part of the same sequence of split log entries.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getIndex
The index of this LogEntry in the sequence of split log entries. Log
entries are given |index| values 0, 1, ..., n-1 for a sequence of n log
entries.
Returns
Type
Description
int
setIndex
The index of this LogEntry in the sequence of split log entries. Log
entries are given |index| values 0, 1, ..., n-1 for a sequence of n log
entries.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getTotalSplits
The total number of log entries that the original LogEntry was split into.
Returns
Type
Description
int
setTotalSplits
The total number of log entries that the original LogEntry was split into.
[[["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 LogSplit (1.32.3)\n\nVersion latestkeyboard_arrow_down\n\n- [1.32.3 (latest)](/php/docs/reference/cloud-logging/latest/V2.LogSplit)\n- [1.32.2](/php/docs/reference/cloud-logging/1.32.2/V2.LogSplit)\n- [1.31.3](/php/docs/reference/cloud-logging/1.31.3/V2.LogSplit)\n- [1.30.3](/php/docs/reference/cloud-logging/1.30.3/V2.LogSplit)\n- [1.29.0](/php/docs/reference/cloud-logging/1.29.0/V2.LogSplit)\n- [1.28.5](/php/docs/reference/cloud-logging/1.28.5/V2.LogSplit)\n- [1.27.1](/php/docs/reference/cloud-logging/1.27.1/V2.LogSplit)\n- [1.26.0](/php/docs/reference/cloud-logging/1.26.0/V2.LogSplit)\n- [1.25.5](/php/docs/reference/cloud-logging/1.25.5/V2.LogSplit)\n- [1.24.10](/php/docs/reference/cloud-logging/1.24.10/V2.LogSplit) \nReference documentation and code samples for the Stackdriver Logging V2 Client class LogSplit.\n\nAdditional information used to correlate multiple log entries. Used when a\nsingle LogEntry would exceed the Google Cloud Logging size limit and is\nsplit across multiple log entries.\n\nGenerated from protobuf message `google.logging.v2.LogSplit`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Logging \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getUid\n\nA globally unique identifier for all log entries in a sequence of split log\nentries. All log entries with the same \\|LogSplit.uid\\| are assumed to be\npart of the same sequence of split log entries.\n\n### setUid\n\nA globally unique identifier for all log entries in a sequence of split log\nentries. All log entries with the same \\|LogSplit.uid\\| are assumed to be\npart of the same sequence of split log entries.\n\n### getIndex\n\nThe index of this LogEntry in the sequence of split log entries. Log\nentries are given \\|index\\| values 0, 1, ..., n-1 for a sequence of n log\nentries.\n\n### setIndex\n\nThe index of this LogEntry in the sequence of split log entries. Log\nentries are given \\|index\\| values 0, 1, ..., n-1 for a sequence of n log\nentries.\n\n### getTotalSplits\n\nThe total number of log entries that the original LogEntry was split into.\n\n### setTotalSplits\n\nThe total number of log entries that the original LogEntry was split into."]]