Made log file work properly

You may need to delete your previous log file.