refactor LogCollection parse method