2 # Copyright (c) Twisted Matrix Laboratories.
3 # See LICENSE for details.
7 An example of using the rotating log.
10 from twisted.python import log
11 from twisted.python import logfile
13 # rotate every 100 bytes
14 f = logfile.LogFile("test.log", "/tmp", rotateLength=100)
16 # setup logging to use our new logfile
21 log.msg("this is a test of the logfile: %s" % i)
23 # rotate the logfile manually