As of January 1, 2020 this library no longer supports Python 2 on the latest released version. Library versions released prior to that date will continue to be available. For more information please visit Python 2 support on Google Cloud.

gRPC vs HTTPΒΆ

google-cloud-logging supports two different protocols for sending logs over the network: gRPC and HTTP. Both implementations conform to the same API, and should be invisible to the end user.

gRPC is enabled by default. You can switch to HTTP mode by either:

  • setting the DISABLE_GRPC environment variable to TRUE

  • or, passing _use_grpc=False when initializing a Client

We recommend using gRPC whenever possible, but you may want to try the HTTP implementation if you have network issues when using gRPC.