title: How to create a folder (if not present) with Logger.new?
body: <p>I'm trying to register a new log</p>
  <pre><code>@@my_logger ||= Logger.new(&quot;#{Rails.root}/log/my.log&quot;)
  </code></pre>
  <p>but when I try to generate new folders , to put it inside</p>
  <pre><code>@@my_logger ||= Logger.new(&quot;#{Rails.root}/log/#{today.to_s}/my.log&quot;)
  </code></pre>
  <p>it returns <code>Errno::ENOENT: No such file or directory</code></p>
  <p>May it be a permission problem?
  How to create a folder (if not present) with Logger.new?</p>