def METHOD_NAME(self, tasks):
    '''
    Log results.
    Log file is named by the master tasks UID.
    '''
    for task in tasks:
        mode = task['description']['mode']
        self._collected[mode] += 1
        # NOTE: `state` will be `AGENT_EXECUTING`
        self._log.info('=== result_cb  %s: %s [%s] [%s]',
                        task['uid'],
                        task['state'],
                        task['stdout'],
                        task['return_value'])
        # Note that stdout is part of the master task result.
        print('id: %s [%s]:\n    out: %s\n    ret: %s\n'
             % (task['uid'], task['state'], task['stdout'],
                task['return_value']))