update the get log list function to handle pagination.