How to upgrade
Update your google/cloud-logging
dependency to ^2.0
:
{
"require": {
"google/cloud-logging": "^2.0"
}
}
Changes
Client Options changes
The following client options are removed/replaced with other options present in ClientOptions
. This was done to ensure client options are consistent across all
Google Cloud clients.
-
authCache-> Moved tocredentialsConfig.authCache -
authCacheOptions-> Moved tocredentialsConfig.authCacheOptions -
credentialsFetcher-> Moved tocredentials -
keyFile-> Moved tocredentials -
keyFilePath-> Moved tocredentials -
requestTimeout-> Removed from client options and moved to a call optiontimeoutMillis -
scopes-> Moved tocredentialsConfig.scopes -
quotaProject-> Moved tocredentialsConfig.quotaProject -
httpHandler-> Moved totransportConfig.rest.httpHandler -
authHttpHandler-> Moved tocredentialsConfig.authHttpHandler -
retries-> Removed from client options and moved to call optionsretrySettings.maxRetries
Retry Options changes
The retry options have been moved to use RetrySettings
in call options
and function parameters.
-
retries-> Renamed toretrySettings.maxRetries -
maxRetries-> Renamed toretrySettings.maxRetries
ConnectionInterface
, Connection\Grpc
, and Connection\Rest
are not used anymore.
This is a major change, but one that we hope won't break any users. When the LoggingClient
was created, behind the scenes a connection adapter was initialized.
The Rest and Grpc connection classes (along with the ConnectionInterface
) have been
removed in favor of using the GAPIC generated clients directly. See src/Connection/Gapic.php
for an example.

