  
      # Various helper methods
      def write_to_log(self, changes):
          """ Write the changes to log file """
          print("Writing sort log to: {}".format(self.args.log_file_path))
          with open(self.args.log_file_path, 'w') as lfile:
              lfile.write(self.serializer.marshal(changes))
  
      def reload_images(self, group_method, img_list):
          """
 
</s> remove             print("Writing alignments to: {}".format(self.file))
 </s> add             logger.info("Writing alignments to: '%s'", self.file) </s> remove             print("Error: {} not written: {}".format(self.file, err.strerror))
 </s> add             logger.error("'%s' not written: %s", self.file, err.strerror) </s> remove                     print(err)
                    print('Failed to move {0} to {1}'.format(src, dst))
 </s> add                     logger.error(err)
                    logger.error("Failed to move '%s' to '%s'", src, dst)
        logger.info("Writing sort log to: '%s'", self.args.log_file_path)
  
      # Various helper methods
      def write_to_log(self, changes):
          """ Write the changes to log file """
        logger.info("Writing sort log to: '%s'", self.args.log_file_path)
          with open(self.args.log_file_path, 'w') as lfile:
              lfile.write(self.serializer.marshal(changes))
  
      def reload_images(self, group_method, img_list):
          """
keep keep keep keep replace keep keep keep keep keep
 Logging (#541)

* Convert prints to logger. Further logging improvements. Tidy  up

* Fix system verbosity. Allow SystemExit

* Fix reload extract bug

* Child Traceback handling

* Safer shutdown procedure

* Add shutdown event to queue manager

* landmarks_as_xy > property. GUI notes + linting. Aligner bugfix

* fix FaceFilter. Enable nFilter when no Filter is supplied

* Fix blurry face filter

* Continue on IO error. Better error handling

* Explicitly print stack trace tocrash log

* Windows Multiprocessing bugfix

* Add git info and conda version to crash log

* Windows/Anaconda mp bugfix

* Logging fixes for training 
tools/sort.py