2 from twisted.application import service
3 from buildbot.master import BuildMaster
5 basedir = r'/buildbot/webkit'
6 configfile = r'master.cfg'
10 application = service.Application('buildmaster')
12 from twisted.python.logfile import LogFile
13 from twisted.python.log import ILogObserver, FileLogObserver
14 logfile = LogFile.fromFullPath("twistd.log", rotateLength=rotateLength,
15 maxRotatedFiles=maxRotatedFiles)
16 application.setComponent(ILogObserver, FileLogObserver(logfile).emit)
18 # probably not yet twisted 8.2.0 and beyond, can't set log yet
20 BuildMaster(basedir, configfile).setServiceParent(application)