title: How can I set 664 (or custom) permission on files created or rotated with rails Logger.new?
body: <p>As the title states, how can I control what permissions are used on log files when rails creates (and rotates) them using <code>Logger.new</code>?</p>
  
  <p>In my case, the parent <code>log</code> folder has 777 permissions, and is owned by an account with sudo access. My rails app runs as <code>www-data</code> and I have other jobs like delayed jobs and cron tasks that run in the same app directory, and they run as another user with sudo access. I'm noticing that some files are being created with insufficient privileges.</p>