How to enable Debug Output with boto using Python?
Today lesson, we will learn a way to get detailed logging by using the Python logging module.
1. Download and install boto library
$ pip install boto
2. Create the logging
# importing the boto library import boto # set the logger boto.set_stream_logger('python-aws') # connect to ec2 with logger ec2 = boto.connect_ec2(debug=2) # connect to s3 with logger s3 = boto.connect_s3(debug=2)
Thatβs it. I hope this will help. ?
Photo: https://www.brandeps.com