[Twisted-Python] Re: startLogging
martin at browns.co.uk
Thu Feb 15 06:59:03 EST 2007
> Are there any samples on how best to interact with logging?
> 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.
> I'm not sure how safe it would be to just keep calling startLogging()
> with a different file name mid-session. I realise there has been some
> discussion about this area recently.
Many thanks for all the suggestions last week regarding the
startLogging function. I now have it working exactly as required. I
ended up deriving a class from twisted.python.logfile.DailyLogFile
More information about the Twisted-Python