Added more logging to FileWriter