'Writes the log to the remote_log_location. Fails silently if no hook
was created.
:param log: the log to write to the remote_log_location
:type log: string
:param remote_log_location: the log\'s location in remote storage
:type remote_log_location: string (path)
:param append: if False, any existing log file is overwritten. If True,
the new log is appended to any existing logs.
:type append: bool'

def write(self, log, remote_log_location, append=True):

    if self.hook:
        if append:
            old_log = self.read(remote_log_location)
            log = u'\n'.join([old_log, log])
        try:
            self.hook.load_string(log, key=remote_log_location, replace=True, encrypt=configuration.getboolean(u'core', u'ENCRYPT_S3_LOGS'))
        except:
            logging.error(u'Could    not    write    logs    to    {}'.format(remote_log_location))
