would it be possible to use the decorator pardygm?

    @logobserver.LineConsumerLogObserver
    def logConsumer(self):
         # foo