mirror of https://github.com/docusealco/docuseal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
945 B
945 B
Enabling Logging
To enable logging for this library, set the logger for the underlying Google
API
Client
library. The logger that you set may be a Ruby stdlib
Logger as
shown below, or a
Google::Cloud::Logging::Logger
that will write logs to Stackdriver
Logging.
If you do not set the logger explicitly and your application is running in a
Rails environment, it will default to Rails.logger. Otherwise, if you do not
set the logger and you are not using Rails, logging is disabled by default.
Configuring a Ruby stdlib logger:
require "logger"
my_logger = Logger.new $stderr
my_logger.level = Logger::WARN
# Set the Google API Client logger
Google::Apis.logger = my_logger