'Write to the HTTP log file.
:param msg: The text to write (a string representation of the HTTP
request and response)'

def _write_to_HTTP_log(self, msg):

    if (self._http is None):
        return
    try:
        self._http.write(msg)
    except Exception as e:
        self._http = None
        msg = 'An    exception    was    raised    while    trying    to    write    to    the    output    file    "%s",    error:    "%s".    Disabling    output    to    this    file.'
        om.out.error((msg % (self._http_file_name, e)), ignore_plugins=set([self.get_name()]))
