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.authCacheauthCacheOptions-> Moved tocredentialsConfig.authCacheOptionscredentialsFetcher-> Moved tocredentialskeyFile-> Moved tocredentialskeyFilePath-> Moved tocredentialsrequestTimeout-> Removed from client options and moved to a call optiontimeoutMillisscopes-> Moved tocredentialsConfig.scopesquotaProject-> Moved tocredentialsConfig.quotaProjecthttpHandler-> Moved totransportConfig.rest.httpHandlerauthHttpHandler-> Moved tocredentialsConfig.authHttpHandlerretries-> 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.maxRetriesmaxRetries-> 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.