fix logging IDs and formatting