add call writeLog