title: Does python logging.handlers.RotatingFileHandler allow creation of a group writable log file?
body: <p>I'm using the standard python (2.5.2) logging module, specifically the <code>RotatingFileHandler</code>, on a linux system.  My application supports both a command-line interface and a web-service interface.  I would like to have both write to the same log file.  However, when the log file gets rotated, the new file has <code>644</code> permissions and is owned by the web server user which prevents the command-line user from writing to it.  Can I specify that new log files should be group-writable in the logging configuration or during logging initialization?</p>
  <p>I have looked into the <code>mode</code> setting (<code>r</code>/<code>w</code>/<code>a</code>), but it doesn't seem to support any file permissions.</p>