require "google/cloud/logging" logging = Google::Cloud::Logging.new logger = logging.logger "my_app_log", resource, env: :production logger.info "Job started" logger.info { "Job started" } logger.debug?