<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cheeseshop</author_name>
  <author_url>https://blog.hatena.ne.jp/cheeseshop/</author_url>
  <blog_title>Pythonを書く</blog_title>
  <blog_url>https://cheeseshop.hatenadiary.org/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>裏技っぽい何かAdvent</anon>
  </categories>
  <description>プログラム実行中に発生したエラーを、error.logファイルに追記していきます。 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 &quot;sample_2012…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcheeseshop.hatenadiary.org%2Fentry%2F20121217%2F1355754788&quot; title=&quot; エラーログファイル - Pythonを書く&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-12-17 23:33:08</published>
  <title> エラーログファイル</title>
  <type>rich</type>
  <url>https://cheeseshop.hatenadiary.org/entry/20121217/1355754788</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
