<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>elm200</author_name>
  <author_url>https://blog.hatena.ne.jp/elm200/</author_url>
  <blog_title>elm200 の日記(旧はてなダイアリー)</blog_title>
  <blog_url>https://elm200.hatenadiary.org/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>Ruby on Rails</anon>
  </categories>
  <description>ログローテーションの落とし穴 Rails でのデフォルトのロガーは、Ruby 標準添付の Logger クラスを少し変えたものである。ログのサイズが大きくなったとき、サイズやら日付やらを基準にログのアーカイブ化を行う（ログローテーション）することが多い。一番簡単な方法はDevelopmentモードのログを日毎にローテートするみたいなやり方だ。しかし、複数の Ruby インスタンスがひとつのログファイルを共有すると、うまく動かないのだ。典型的なのは Mongrel Cluster で複数の Rails インスタンスを運用している状況だ。ログローテーションが起こった直後から、&quot;Status: 50…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Felm200.hatenadiary.org%2Fentry%2F20071008%2F1191812760&quot; title=&quot;安全なログローテーション - elm200 の日記(旧はてなダイアリー)&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>2007-10-08 12:06:00</published>
  <title>安全なログローテーション</title>
  <type>rich</type>
  <url>https://elm200.hatenadiary.org/entry/20071008/1191812760</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
