Variant of subprocess.call that accepts a logger instead of stdout/stderr.