metomi/rose — pull request #287 by matthewrmshin (2012-12-13 16:45:12+00:00)
Title: 165.rose suite run.log

This addresses #165, #243, and also a request raised by @steoxley to name a suite log directory. It does the following:

0. The old log rotation mechanism is replaced by a new system.

1. Introduce a run mode: `--run=reload|restart|run`. In reload and restart modes, the existing log directory is used. For the normal run mode, it creates a new log and carries out housekeeping.

2. It creates a `log.DATETIME` directory (where DATETIME is the current date time in ISO8601 format), and creates a symbolic link `log` to point to it. If `--log-name=NAME` is specified, it creates another symbolic link `log.NAME` to point to it as well.

3. Old `log.DATETIME` directories are normally archived into `tar-gzip` files. The `--no-log-archive` option switches off this behaviour. `log.DATETIME` directories with named `log.NAME` symbolic links will not be archived.

4. If `--log-keep=DAYS` is specified, `log.DATETIME` directories with modified time older than the specified number of DAYS are removed.