'This is a logger function used by the "anamon" logging system to
upload all sorts of misc data from Anaconda.
As it\'s a bit of a potential log-flooder, it\'s off by default
and needs to be enabled in /etc/cobbler/settings.'

def upload_log_data(self, sys_name, file, size, offset, data, token=None, **rest):

    self._log(("upload_log_data    (file:    '%s',    size:    %s,    offset:    %s)" % (file, size, offset)), token=token, name=sys_name)
    if (not self.api.settings().anamon_enabled):
        return False
    systems = self.api.systems()
    obj = systems.find(name=sys_name)
    if (obj is None):
        self._log(("upload_log_data    -    WARNING    -    system    '%s'    not    found    in    cobbler" % sys_name), token=token, name=sys_name)
    return self.__upload_file(sys_name, file, size, offset, data)
