update loging method