from zope.interface import implements
from twisted.python import usage
from twisted.plugin import IPlugin
from twisted.application.service import IServiceMaker
from twisted.application import internet
from fixbot import api
from fixbot import logwatch
class LogwatchOptions (api.ClientOptions) :
optParameters = [
("logwatch-sources", None, None, "See etc/fixbot-logwatch.py"),
]
optFlags = [
]
class MyServiceMaker (object) :
implements(IServiceMaker, IPlugin)
tapname = "fixbot-logwatch"
description = "FixBot (Logwatcher component)"
options = LogwatchOptions
def makeService (self, config) :
return logwatch.makeService(config)
serviceMaker = MyServiceMaker()