require"logger"moduleMyLoggerLOGGER=Logger.new$stderr,level:Logger::WARNdefloggerLOGGERendend# Define a gRPC module-level logger method before grpc/logconfig.rb loads.moduleGRPCextendMyLoggerend
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["Enabling gRPC Logging\n=====================\n\nTo enable logging for this library, set the logger for the underlying\n[gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library. The logger\nthat you set may be a Ruby stdlib\n[`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as\nshown below, or a\n[`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)\nthat will write logs to [Stackdriver\nLogging](https://cloud.google.com/logging/). See\n[grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)\nand the gRPC\n[spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb)\nfor additional information.\n\nConfiguring a Ruby stdlib logger: \n\n```ruby\nrequire \"logger\"\n\nmodule MyLogger\n LOGGER = Logger.new $stderr, level: Logger::WARN\n def logger\n LOGGER\n end\nend\n\n# Define a gRPC module-level logger method before grpc/logconfig.rb loads.\nmodule GRPC\n extend MyLogger\nend\n```"]]