class GraylogService(service.Service): """ Graylog Service that will be started by twisted """ def __init__(self, protocol, host, port): self.observer = GraylogObserver(protocol, host, port) def startService(self): service.Service.startService(self) self.observer.start() def stopService(self): service.Service.stopService(self) self.observer.stop()
def __init__(self, protocol, host, port): self.observer = GraylogObserver(protocol, host, port)