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
[[["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-08-28 UTC."],[],[],null,["Version latestkeyboard_arrow_down\n\n- [3.12.1 (latest)](/python/docs/reference/logging/latest/grpc-vs-http)\n- [3.12.0](/python/docs/reference/logging/3.12.0/grpc-vs-http)\n- [3.11.3](/python/docs/reference/logging/3.11.3/grpc-vs-http)\n- [3.10.0](/python/docs/reference/logging/3.10.0/grpc-vs-http)\n- [3.9.0](/python/docs/reference/logging/3.9.0/grpc-vs-http)\n- [3.8.0](/python/docs/reference/logging/3.8.0/grpc-vs-http)\n- [3.7.0](/python/docs/reference/logging/3.7.0/grpc-vs-http)\n- [3.6.0](/python/docs/reference/logging/3.6.0/grpc-vs-http)\n- [3.5.0](/python/docs/reference/logging/3.5.0/grpc-vs-http)\n- [3.4.0](/python/docs/reference/logging/3.4.0/grpc-vs-http)\n- [3.3.1](/python/docs/reference/logging/3.3.1/grpc-vs-http)\n- [3.2.5](/python/docs/reference/logging/3.2.5/grpc-vs-http)\n- [3.1.2](/python/docs/reference/logging/3.1.2/grpc-vs-http)\n- [3.0.0](/python/docs/reference/logging/3.0.0/grpc-vs-http)\n- [2.7.2](/python/docs/reference/logging/2.7.2/grpc-vs-http)\n- [2.6.0](/python/docs/reference/logging/2.6.0/grpc-vs-http)\n- [2.5.0](/python/docs/reference/logging/2.5.0/grpc-vs-http)\n- [2.4.0](/python/docs/reference/logging/2.4.0/grpc-vs-http)\n- [2.3.1](/python/docs/reference/logging/2.3.1/grpc-vs-http)\n- [2.2.0](/python/docs/reference/logging/2.2.0/grpc-vs-http)\n- [2.1.1](/python/docs/reference/logging/2.1.1/grpc-vs-http)\n- [2.0.2](/python/docs/reference/logging/2.0.2/grpc-vs-http)\n- [1.15.3](/python/docs/reference/logging/1.15.3/grpc-vs-http)\n- [1.14.0](/python/docs/reference/logging/1.14.0/grpc-vs-http)\n- [1.13.0](/python/docs/reference/logging/1.13.0/grpc-vs-http)\n- [1.12.1](/python/docs/reference/logging/1.12.1/grpc-vs-http) \n\ngRPC vs HTTP\n============\n\n`google-cloud-logging` supports two different protocols for sending logs over the network:\ngRPC and HTTP. Both implementations conform to the same API, and should be\ninvisible to the end user.\n\ngRPC is enabled by default. You can switch to HTTP mode by either:\n\n- setting the DISABLE_GRPC environment variable to TRUE\n\n- or, passing _use_grpc=False when [initializing a Client](/python/docs/reference/logging/latest/direct-lib-usage#creating-client)\n\nWe recommend using gRPC whenever possible, but you may want to try the HTTP\nimplementation if you have network issues when using gRPC."]]