              print("Writing alignments to: {}".format(self.file))
              with open(self.file, self.serializer.woptions) as align:
                  align.write(self.serializer.marshal(self.data))
          except IOError as err:
              print("Error: {} not written: {}".format(self.file, err.strerror))
  
      def backup(self):
          """ Backup copy of old alignments """
          if not os.path.isfile(self.file):
              return
 
</s> remove             print("Writing alignments to: {}".format(self.file))
 </s> add             logger.info("Writing alignments to: '%s'", self.file) </s> remove             print("Error: {} not read: {}".format(self.file, err.strerror))
 </s> add             logger.error("'%s' not read: %s", self.file, err.strerror) </s> remove             print("Reading alignments from: {}".format(self.file))
 </s> add             logger.info("Reading alignments from: '%s'", self.file)
            logger.error("'%s' not written: %s", self.file, err.strerror)
              print("Writing alignments to: {}".format(self.file))
              with open(self.file, self.serializer.woptions) as align:
                  align.write(self.serializer.marshal(self.data))
          except IOError as err:
            logger.error("'%s' not written: %s", self.file, err.strerror)
  
      def backup(self):
          """ Backup copy of old alignments """
          if not os.path.isfile(self.file):
              return
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 
lib/alignments.py