{"id":407,"date":"2010-03-12T09:18:11","date_gmt":"2010-03-12T14:18:11","guid":{"rendered":"http:\/\/crschmidt.net\/blog\/?p=407"},"modified":"2010-03-12T09:18:11","modified_gmt":"2010-03-12T14:18:11","slug":"enabling-boto-logging","status":"publish","type":"post","link":"https:\/\/crschmidt.net\/blog\/archives\/407\/enabling-boto-logging\/","title":{"rendered":"Enabling boto logging"},"content":{"rendered":"<p>When using the Python &#8216;boto&#8217; library for accessing Amazon Web Services, to enable logging to a file at the &#8216;debug&#8217; level, simply use the logging module&#8217;s configuration:<\/p>\n<p><code>import logging<br \/>\nlogging.basicConfig(filename=\"boto.log\", level=logging.DEBUG)<br \/>\n<\/code><\/p>\n<p>Place this line near the top of your script, and logging will take place to a file in your current directory called &#8220;boto.log&#8221;.<\/p>\n<p>I&#8217;m sure that this is obvious for most people who use the Python logging module, but this is new code to me, and it took me a fair bit of looking to find out how to enable logging; hopefully other people find it more easily now.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When using the Python &#8216;boto&#8217; library for accessing Amazon Web Services, to enable logging to a file at the &#8216;debug&#8217; level, simply use the logging module&#8217;s configuration: import logging logging.basicConfig(filename=&#8221;boto.log&#8221;, level=logging.DEBUG) Place this line near the top of your script, and logging will take place to a file in your current directory called &#8220;boto.log&#8221;. I&#8217;m [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-407","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/posts\/407","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/comments?post=407"}],"version-history":[{"count":0,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/posts\/407\/revisions"}],"wp:attachment":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/media?parent=407"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/categories?post=407"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/tags?post=407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}