Module: Google::Cloud
- Defined in:
- lib/google-cloud-logging.rb,
lib/google/cloud/logging.rb,
lib/google/cloud/logging/sink.rb,
lib/google/cloud/logging/entry.rb,
lib/google/cloud/logging/rails.rb,
lib/google/cloud/logging/errors.rb,
lib/google/cloud/logging/logger.rb,
lib/google/cloud/logging/metric.rb,
lib/google/cloud/logging/convert.rb,
lib/google/cloud/logging/project.rb,
lib/google/cloud/logging/service.rb,
lib/google/cloud/logging/version.rb,
lib/google/cloud/logging/log/list.rb,
lib/google/cloud/logging/resource.rb,
lib/google/cloud/logging/sink/list.rb,
lib/google/cloud/logging/entry/list.rb,
lib/google/cloud/logging/middleware.rb,
lib/google/cloud/logging/credentials.rb,
lib/google/cloud/logging/metric/list.rb,
lib/google/cloud/logging/async_writer.rb,
lib/google/cloud/logging/entry/operation.rb,
lib/google/cloud/logging/entry/http_request.rb,
lib/google/cloud/logging/resource_descriptor.rb,
lib/google/cloud/logging/entry/source_location.rb,
lib/google/cloud/logging/resource_descriptor/list.rb
Defined Under Namespace
Modules: Logging
Class Method Summary collapse
-
.logging(project_id = nil, credentials = nil, scope: nil, timeout: nil) ⇒ Google::Cloud::Logging::Project
Creates a new object for connecting to the Stackdriver Logging service.
Instance Method Summary collapse
-
#logging(scope: nil, timeout: nil) ⇒ Google::Cloud::Logging::Project
Creates a new object for connecting to the Stackdriver Logging service.
Class Method Details
.logging(project_id = nil, credentials = nil, scope: nil, timeout: nil) ⇒ Google::Cloud::Logging::Project
Creates a new object for connecting to the Stackdriver Logging service. Each call creates a new connection.
For more information on connecting to Google Cloud see the Authentication Guide.
109 110 111 112 113 114 |
# File 'lib/google-cloud-logging.rb', line 109 def self.logging project_id = nil, credentials = nil, scope: nil, timeout: nil require "google/cloud/logging" Google::Cloud::Logging.new project_id: project_id, credentials: credentials, scope: scope, timeout: timeout end |
Instance Method Details
#logging(scope: nil, timeout: nil) ⇒ Google::Cloud::Logging::Project
Creates a new object for connecting to the Stackdriver Logging service. Each call creates a new connection.
For more information on connecting to Google Cloud see the Authentication Guide.
67 68 69 70 71 |
# File 'lib/google-cloud-logging.rb', line 67 def logging scope: nil, timeout: nil timeout ||= @timeout Google::Cloud.logging @project, @keyfile, scope: scope, timeout: timeout end |