[aot] Emit aot logging information to a per-assembly file when using the AOT cache. Cache aot failures.