Save log in appropriate folder