Feb. 8, 2007
1:51 p.m.
Martin Evans wrote:
My server needs to log quite a few items, as such the log file is growing quite quickly and I would like to be able to switch file names on a daily basis. I would also probably then wish to delete logs older than 14 days.
Assuming your platform has a [decent] syslogd, how about logging to syslog, instead of reimplementing parts of it? Something like this should work: % twistd --syslog --prefix foo -oy foo.tac And then let syslog do the hard work. -Mark