Enabling gRPC Logging
To enable logging for this library, set the logger for the underlyinggRPC library. The loggerthat you set may be a Ruby stdlibLogger asshown below, or aGoogle::Cloud::Logging::Loggerthat will write logs toStackdriverLogging. Seegrpc/logconfig.rband the gRPCspec_helper.rbfor additional information.
Configuring a Ruby stdlib logger:
require"logger"moduleMyLoggerLOGGER=Logger.new$stderr,level:Logger::WARNdefloggerLOGGERendend# Define a gRPC module-level logger method before grpc/logconfig.rb loads.moduleGRPCextendMyLoggerend
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-11-04 UTC.