Module: Logging::Appenders

Defined in:
lib/logging/appenders/gcl.rb

Defined Under Namespace

Classes: GoogleCloudLogging

Class Method Summary collapse

Class Method Details

.gcl(*args) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/logging/appenders/gcl.rb', line 6

def self.gcl( *args )
  if !Gcloud.instance_methods.include?(:logging)
    puts "-- Gcloud Logging module not available. Please use the latest gcloud version from github master."
    return false
  end
  return ::Logging::Appenders::GoogleCloudLogging if args.empty?
  ::Logging::Appenders::GoogleCloudLogging.new(*args)
end