[Twisted-Python] startLogging

Martin Evans martin at browns.co.uk
Thu Feb 8 05:14:42 MST 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.

Thanks, Martin





More information about the Twisted-Python mailing list