MEM-128 Add log entry size validation to API