'Write a line representing C{request} to the access log file.
@param request: The request object about which to log.
@type request: L{Request}'

def log(self, request):

    try:
        logFile = self.logFile
    except AttributeError:
        pass
    else:
        line = (self._logFormatter(self._logDateTime, request) + u'\n')
        logFile.write(line.encode('utf8'))
