Collecting diagnostic and log information for ICDx