Change variable Logger.write to Logger.file