{"blog_title":"Python\u3092\u66f8\u304f","image_url":null,"title":" \u30a8\u30e9\u30fc\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb","height":"190","published":"2012-12-17 23:33:08","blog_url":"https://cheeseshop.hatenadiary.org/","description":"\u30d7\u30ed\u30b0\u30e9\u30e0\u5b9f\u884c\u4e2d\u306b\u767a\u751f\u3057\u305f\u30a8\u30e9\u30fc\u3092\u3001error.log\u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u8a18\u3057\u3066\u3044\u304d\u307e\u3059\u3002 import logging logging.basicConfig( level=logging.DEBUG, filename='error.log', filemode='a') try: x = 1 / 0 except Exception, exc: logging.exception(exc) raise ERROR:root:integer division or modulo by zero Traceback (most recent call last): File \"sample_2012\u2026","url":"https://cheeseshop.hatenadiary.org/entry/20121217/1355754788","version":"1.0","provider_url":"https://hatena.blog","width":"100%","author_name":"cheeseshop","author_url":"https://blog.hatena.ne.jp/cheeseshop/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcheeseshop.hatenadiary.org%2Fentry%2F20121217%2F1355754788\" title=\" \u30a8\u30e9\u30fc\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb - Python\u3092\u66f8\u304f\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Python","\u88cf\u6280\u3063\u307d\u3044\u4f55\u304bAdvent"],"type":"rich","provider_name":"Hatena Blog"}