'Configure debugging for the scans to be run.'

def _configure_debug(self):

    ptype = 'output'
    pname = 'text_file'
    enabled_output = self.w3afcore.plugins.get_enabled_plugins(ptype)
    enabled_output += [pname]
    self.w3afcore.plugins.set_plugins(enabled_output, ptype)
    output_dir = os.environ.get('CIRCLE_ARTIFACTS', tempfile.gettempdir())
    rnd = rand_alnum(6)
    text_output = os.path.join(output_dir, ('output-%s.txt' % rnd))
    http_output = os.path.join(output_dir, ('output-http-%s.txt' % rnd))
    text_file_inst = self.w3afcore.plugins.get_plugin_inst(ptype, pname)
    default_opts = text_file_inst.get_options()
    default_opts['output_file'].set_value(text_output)
    default_opts['http_output_file'].set_value(http_output)
    default_opts['verbose'].set_value(True)
    print(('Logging    to    %s' % text_output))
    self.w3afcore.plugins.set_plugin_options(ptype, pname, default_opts)
