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 beinvisible 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 wheninitializing a Client
We recommend using gRPC whenever possible, but you may want to try the HTTPimplementation if you have network issues when using gRPC.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-30 UTC.