'Export logs for ``service_name`` to ``target_path`` compressed using
``gzip``.'

def export_flocker(self, service_name, target_path):

    files = [('/var/log/upstart/{}.log'.format(service_name), (target_path + '_startup.gz')), ('/var/log/flocker/{}.log'.format(service_name), (target_path + '_eliot.gz'))]
    for (source_path, archive_path) in files:
        gzip_file(source_path, archive_path)
