1from doit.reporter import ConsoleReporter 2 3class MyReporter(ConsoleReporter): 4 def execute_task(self, task): 5 self.outstream.write('MyReporter --> %s\n' % task.title()) 6 7DOIT_CONFIG = {'reporter': MyReporter, 8 'verbosity': 2} 9 10def task_sample(): 11 for x in range(3): 12 yield {'name': str(x), 13 'actions': ['echo out %d' % x]} 14