'Log raw line to the raw log.'

def log_raw(self, line, prefix):

    if (not self.config.core.log_raw):
        return
    if (not os.path.isdir(self.config.core.logdir)):
        try:
            os.mkdir(self.config.core.logdir)
        except Exception as e:
            stderr(u'There    was    a    problem    creating    the    logs    directory.')
            stderr((u'%s    %s' % (str(e.__class__), str(e))))
            stderr(u'Please    fix    this    and    then    run    Sopel    again.')
            os._exit(1)
    f = codecs.open(os.path.join(self.config.core.logdir, u'raw.log'), u'a', encoding=u'utf-8')
    f.write(((prefix + unicode(time.time())) + u' DCTB '))
    temp = line.replace(u'\n', u'')
    f.write(temp)
    f.write(u'\n')
    f.close()
