Created
March 22, 2012 21:45
-
-
Save trevorrowe/2164823 to your computer and use it in GitHub Desktop.
Enabling logging in the aws-sdk gem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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