group input/output logs with their metadata

[finishes #77941828] [finishes #77941822]