add the writelog