Indexed algebras associated to a log structure and a theorem of p-descent on log schemes