<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>limitusus</author_name>
  <author_url>https://blog.hatena.ne.jp/limitusus/</author_url>
  <blog_title>limitusus’s diary</blog_title>
  <blog_url>https://limitusus.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>ramaze</anon>
    <anon>Programming</anon>
  </categories>
  <description>問題が合ったときにコンソールだけでなくファイルにもエラーログを出力したいときのこと。 例外の投げ方は前書いたものと同じようにしておく。その下にファイルにもエラーログを書く部分を示す。 def user(input_data) begin # 入力値が適正かチェック raise Exception, %[データ(#{input_data})が不正] if not valid(input_data) rescue Exception =&gt; message error(message.to_s) end # 以下通常処理・・・ end def error(mes) # エラー出力ファイル指定 Ram…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flimitusus.hatenablog.com%2Fentry%2F20080903%2F1220371139&quot; title=&quot;ログファイルに出力 - limitusus’s diary&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>2008-09-03 00:58:59</published>
  <title>ログファイルに出力</title>
  <type>rich</type>
  <url>https://limitusus.hatenablog.com/entry/20080903/1220371139</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
