All log operations need the file ID, set it when allocating the structure.