Skip to content

Instantly share code, notes, and snippets.

@trevorrowe
Created March 22, 2012 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trevorrowe/2164823 to your computer and use it in GitHub Desktop.
Save trevorrowe/2164823 to your computer and use it in GitHub Desktop.
Enabling logging in the aws-sdk gem
require 'aws-sdk'
require 'logger'
# configure a logger instance that logs to standard out,
# this could be a file, standard error, etc. The logger only
# needs to respond to #log and accept a severity and a message.
AWS.config(:logger => Logger.new($stdout))
# make a request to see the request logger
ec2 = AWS::EC2.new
ec2.instances.first
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment