add append logging to file