Skip to content

Document Logging of Google Cloud libraries. #1907

@blowmage

Description

@blowmage

Logging in most Google Cloud libraries is possible by enabling the logging of the lower-level libraries used to make the API calls. These libraries are GRPC and Google API Client.

require "logger"

app_logger = Logger.new $stderr
app_logger.level = Logger::WARN

# Set GRPC logger
GRPC::DefaultLogger::LOGGER = app_logger

# Set the Google API Client logger
Google::Apis.logger = app_logger

Logging can be very useful for debugging applications, or performance tuning. We think this should be documented somewhere that users can more easily discover which to choose for the library they are using.

See #1216 for more discussion about this.

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: cleanupAn internal cleanup or hygiene concern.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions