We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b62384 commit 6b0754cCopy full SHA for 6b0754c
google-cloud-pubsub/lib/google/cloud/pubsub/logger_helper.rb
@@ -19,10 +19,16 @@ module PubSub
19
LOG_NAME = "pubsub".freeze
20
private_constant :LOG_NAME
21
22
+ ##
23
+ # The logger for the Pub/Sub library.
24
+ # @return [Logger]
25
def self.logger
26
is_logging_enabled ? configure.logger : Logger.new(nil)
27
end
28
29
30
+ # Checks if logging is enabled for the Pub/Sub library.
31
+ # @return [Boolean]
32
def self.is_logging_enabled
33
begin
34
env_var = ENV["GOOGLE_SDK_RUBY_LOGGING_GEMS"]
0 commit comments