Use belongsToWithUri to fetch associated models for logs