結果 : write error log in python